2019年10月18日

摘要: 我们知道springboot自动配置@EnableAutoConfiguration是通过@Import(AutoConfigurationImportSelector.class)来把自动配置组件加载进spring的context中的. 我们来看看@Import的定义: /** * Indicat 阅读全文
posted @ 2019-10-18 17:11 swave 阅读(957) 评论(0) 推荐(0) 编辑
摘要: springboot启动时,会自动识别出当前环境是否是web环境还是非web环境。 ConfigurableApplicationContext org.springframework.boot.SpringApplication.createApplicationContext(): 那么我们来详 阅读全文
posted @ 2019-10-18 12:27 swave 阅读(1398) 评论(0) 推荐(0) 编辑

导航