解决Error starting ApplicationContext. To display the auto-configuration report re-runyour application

今天在搭建SpringBoot+SpringCloud+mybatis+maven时 报的错我找了大半天 不知道那里我的配置文件代码都审查了好多次 都没毛病 就是一直出现这个错
开发软件是:eclipse
报错信息

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2019-04-03 09:27:31.846 ERROR 6852 --- [  restartedMain] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Cannot determine embedded database driver class for database type NONE

Action:

If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).

解决Error starting ApplicationContext. To display the auto-configuration report re-runyour application_第1张图片
解决:
本人在网上查了好多 但是都没什么用
最后我看见一个文章说resources的配置的:application.yml 或application.properties文件扫描不到…很奇怪,我将配置文件全部放在resources文件夹下,官方文档也建议将配置文件放在此文件夹下,但是就是找不到我的数据库配置文件,具体原因暂时还不明白。

把application.yml 或application.properties文件放在src/main/java下 就可以了

解决Error starting ApplicationContext. To display the auto-configuration report re-runyour application_第2张图片
这就过分了!!!!
好了! 我还能说什么!!

你可能感兴趣的:(SpringBoot)