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

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

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).

在这里插入图片描述
解决:
本人在网上查了好多 可是都没什么用
最后我看见一个文章说resources的配置的:application.yml 或application.properties文件扫描不到…很奇怪,我将配置文件所有放在resources文件夹下,官方文档也建议将配置文件放在此文件夹下,可是就是找不到个人数据库配置文件,具体缘由暂时还不明白。web

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

在这里插入图片描述
这就过度了!!!!
好了! 我还能说什么!!数据库