首先明白核心注解有三个:
1.springbootAplication:
首先它结合了亲戚Configure,配置文件
2.EnableAutoConfigure
可以开辟自动配置,也可以关闭自动配置。
那我拿如何关闭自动配置?
@SpringbootApplication(exclude={DatasourceAutoconfigure.class})
3.ConpontScan
spring 的组件扫描。扫描当前包及其子包
首先明白核心注解有三个:
1.springbootAplication:
首先它结合了亲戚Configure,配置文件
2.EnableAutoConfigure
可以开辟自动配置,也可以关闭自动配置。
那我拿如何关闭自动配置?
@SpringbootApplication(exclude={DatasourceAutoconfigure.class})
3.ConpontScan
spring 的组件扫描。扫描当前包及其子包