在eclipse中SpringBoot启动报Cannot determine embedded database driver class for database type NONE

最近公司用SpringBoot项目在IDEA中可以正常使用 但是在eclipse中报这个错误

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

查了一些资料后发现我的eclipse的resource目录把配置文件都过滤掉了

解决办法

右击项目名 点击Build Path 再点击Configure Build Path....进入

在eclipse中SpringBoot启动报Cannot determine embedded database driver class for database type NONE

资源被过滤掉了,点击Edit

在eclipse中SpringBoot启动报Cannot determine embedded database driver class for database type NONE

两个都点击remove之后,点击Finish之后效果是这样的

在eclipse中SpringBoot启动报Cannot determine embedded database driver class for database type NONE

然后启动项目

在eclipse中SpringBoot启动报Cannot determine embedded database driver class for database type NONE