Cannot determine embedded database driver class for database type NONE

自己从之前的springboot项目,复制、粘贴一份来新建一个项目,打算用这个项目写后台,可是在启动时报一个错如标题所示:

具体错误信息如下:

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 (the profiles "@spring.profiles.active@" are currently active).

 

自己很快排查到错误原因,因为自己复制项目后,没有修改pom.xml文件中的配置,因此导致出现现在的问题。

找到原因后,立马修改pom.xml文件中项目名称的配置,重新导入pom文件,启动项目,问题解决。

posted @ 2021-08-29 19:40  一只爱阅读的程序员  阅读(673)  评论(0编辑  收藏  举报