随笔分类 - Spring Framework学习
摘要:可以在yml文件中写如下配置信息: logging: level: root: info com.xxx: trace TRACE designates finer-grained informational events than the DEBUG.Since:1.2.12,很低的日志级别,一般
阅读全文
摘要:摘抄自: https://www.jianshu.com/p/f19a58938959 1. SqlSession和SqlSessionTemplate SqlSession SqlSession实现了Closeable接口,代表SqlSession是可以关闭的,那也就是说SqlSession代表一
阅读全文
摘要:执行顺序 执行通过ApplicationContext添加进来的BeanDefinitionRegistryPostProcessor的postProcessBeanDefinitionRegistry()方法 执行BeanFactory中实现了PriorityOrdered接口的BeanDefin
阅读全文
摘要:Spring中ApplicationContext的close方法执行流程: 1、发布关闭事件 2、执行lifeCycleProcess的close方法 3、执行destroyBeans()方法; 注释原文:// Destroy all cached singletons in the contex
阅读全文
摘要:在没有指定name属性,进行@Autowired同样的操作时,其中6层筛选的最后一步byname,尝试找出唯一bean的这一步其实多余。因为第一次根据注入点名字在BeanFactory中找bean已经做了同样的操作。
阅读全文