@SpringbootApplication
使用@SpringbootApplication注解 可以解决根类或者配置类(我自己的说法,就是main所在类)头上注解过多的问题,一个@SpringbootApplication相当于@Configuration
,@EnableAutoConfiguration
和
@ComponentScan 并具有他们的默认属性值
使用@SpringbootApplication注解 可以解决根类或者配置类(我自己的说法,就是main所在类)头上注解过多的问题,一个@SpringbootApplication相当于@Configuration
,@EnableAutoConfiguration
和
@ComponentScan 并具有他们的默认属性值