在springBootApplication中,自动将springBootApplication启动时将存在的类对象创建好交给spring容器。
在入口注解@springBootApplication中可以发现有自定义的原注解以及@springBootConfiguration
@enableconfiguration

通过pom文件,如果你引入了相关依赖,创建对应的数据源

手动排除datasources
本文介绍了如何在SpringBoot应用中使用@SpringBootApplication注解进行自动配置,包括自定义配置类和通过pom.xml引入并管理数据源,同时提及了如何手动排除不需要的datasources。
在springBootApplication中,自动将springBootApplication启动时将存在的类对象创建好交给spring容器。
在入口注解@springBootApplication中可以发现有自定义的原注解以及@springBootConfiguration
@enableconfiguration

通过pom文件,如果你引入了相关依赖,创建对应的数据源

手动排除datasources
1595