![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
鶸者为何战斗
这个作者很懒,什么都没留下…
展开
-
spring boot监听器流程
本次代码基于spring boot 1.5.9首先是启动器类@SpringBootApplication@EnableTransactionManagement(proxyTargetClass = true)@MapperScan(basePackages = {"com.frame.springboot.dao", "com.frame.springboot.base"})pu...原创 2019-02-08 19:52:49 · 504 阅读 · 0 评论 -
spring boot环境初始化过程
先看一下最简单的spring boot中环境中有些什么东西,首先spring boot的版本是1.5.9@RequestMapping(value = "/hello")@RestControllerpublic class HelloWorld { @Autowired private AbstractEnvironment environment; @Re...原创 2019-02-10 14:32:50 · 741 阅读 · 0 评论 -
spring boot准备环境流程
private void prepareContext(ConfigurableApplicationContext context, ConfigurableEnvironment environment, SpringApplicationRunListeners listeners, ApplicationArguments applicationArguments, Banner...原创 2019-02-12 14:44:15 · 281 阅读 · 0 评论 -
spring boot refresh流程
这里使用的是spring boot 1.5.9先看一下具体的实现方法 public void refresh() throws BeansException, IllegalStateException { synchronized(this.startupShutdownMonitor) { this.prepareRefresh(); ...原创 2019-02-12 17:14:18 · 993 阅读 · 0 评论 -
spring boot afterRefresh流程
spring boot使用的是1.5.9 private void callRunners(ApplicationContext context, ApplicationArguments args) { List<Object> runners = new ArrayList(); runners.addAll(context.getBeansO...原创 2019-02-13 15:46:01 · 1455 阅读 · 0 评论 -
spring boot默认扫描的路径
一般来说spring boot默认的扫描路径是启动类当前的包和子包@SpringBootApplication@EnableTransactionManagement(proxyTargetClass = true)@MapperScan(basePackages = {"com.frame.springboot.dao", "com.frame.springboot.base"})p...原创 2019-02-13 19:01:05 · 18188 阅读 · 0 评论