源地址:http://www.javashuo.com/article/p-yybfnfxm-bb.html.net
雖然定義使用了多個Annotation進行了原信息標註,但實際上重要的只有三個Annotation:blog
@Configuration(@SpringBootConfiguration點開查看發現裏面仍是應用了@Configuration)
@EnableAutoConfiguration
@ComponentScan
若是在啓動類使用這個三個註解,整個SpringBoot應用依然能夠與以前的啓動類功能同樣。但每次寫這3個比較囉嗦,因此寫一個@SpringBootApplication方便點。get