摘要: 在Spring下的策略模式 定义一个注解类Module @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface Module { /** * 属于哪个模块 */ Str 阅读全文
posted @ 2022-10-27 22:01 咖啡因的取悦 阅读(24) 评论(0) 推荐(0)
摘要: 一级缓存创建时机 /** * DefaultSqlSessionFactory#openSession */ private SqlSession openSessionFromDataSource(ExecutorType execType, TransactionIsolationLevel l 阅读全文
posted @ 2022-10-27 21:59 咖啡因的取悦 阅读(42) 评论(0) 推荐(0)
摘要: Spring中单例Bean实例创建的三个步骤: 创建对象,createBeanInstance 填充属性,populateBean 初始化操作(调用初始化方法),initializeBean 构造器循环依赖 无法解决,因为实例都还没有创建出来。比如A构造器依赖B,B构造器依赖A,在创建A实例需要B实 阅读全文
posted @ 2022-10-27 21:58 咖啡因的取悦 阅读(34) 评论(0) 推荐(0)
摘要: 原文链接:https://blog.csdn.net/u013768867/article/details/103715437 1、把服务打包成jar包,这里是 test.jar 2、安装了 docker 的 linux 服务器 3、创建 dockerfile 文件,文件名为 dockerfile, 阅读全文
posted @ 2022-10-27 21:56 咖啡因的取悦 阅读(408) 评论(0) 推荐(0)