2019年6月3日

摘要: 通常我们启动一个springboot项目会在启动方法中增加@SpringBootApplicatoin注解,该注解中包含了@EnableAutoConfiguration 那么@EnableAutoConfiguration是如何自动起作用的呢。我们先来看看@EnableAutoConfigurat 阅读全文
posted @ 2019-06-03 11:54 swave 阅读(573) 评论(0) 推荐(0) 编辑
摘要: springboot一般通过以下main方法来启动项目 查看源码发现加载的主要逻辑写在了 ConfigurableApplicationContext org.springframework.boot.SpringApplication.run(String... args)这个方法里面 具体逻辑如 阅读全文
posted @ 2019-06-03 10:29 swave 阅读(8803) 评论(0) 推荐(1) 编辑

导航