Cannot determine embedded database driver class for database type NONE解决办法

Cannot determine embedded database driver class for database type NONE解决办法

最近在做一个spring cloud项目,满怀期待的配置好了,以为便可以正常启动,谁知,报错了,如图
Cannot determine embedded database driver class for database type NONE解决办法
Cannot determine embedded database driver class for database type NONE解决办法
明明已经配置好数据源为什么还会出现找不到数据源的问题,猜想应该是读取不到application.yml文件的缘故,事实上确实如此!只要让项目读取到application.yml文件即可!

后面笔者尝试把application.yml文件换成了application.properties文件,再次执行发现居然可以连到数据库了。

笔者用的是sts工具,至于为什么能自动识别properties文件,却不能自动识别yml文件,这个笔者也不是很清楚…