未配置数据库前:
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
配置数据库后未删除自动配置(exclude= {DataSourceAutoConfiguration.class})
报错:rror starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2021-03-25 14:05:49.878 ERROR 12680 — [ restartedMain] o.s.boot.SpringApplication : Application run failed…
解决方法
删除(exclude= {DataSourceAutoConfiguration.class}),即可。
配置完数据库信息,报错:To display the conditions report re-run your application with ‘debug‘ enabled.
最新推荐文章于 2024-07-05 23:17:35 发布