@SpringBootApplication是一个组合注解
它也是SpringBoot中的核心注解
其中包含了三大注解:
@SpringBootConfiguration:本质上就是一个配置类
@EnableAutoConfiguration:实现了SpringBoot的自动装配
@CompentScan 自动扫描了当前包及其子包的注解,然后过滤了两个类
SpringBoot项目运行时期底层会自动创建tomcat容器,不需要第三方的tomcat支持
@SpringBootApplication是一个组合注解
它也是SpringBoot中的核心注解
其中包含了三大注解:
@SpringBootConfiguration:本质上就是一个配置类
@EnableAutoConfiguration:实现了SpringBoot的自动装配
@CompentScan 自动扫描了当前包及其子包的注解,然后过滤了两个类
SpringBoot项目运行时期底层会自动创建tomcat容器,不需要第三方的tomcat支持