springboot本地测试使用configmap方式读取配置文件,但是classes文件夹下没有这个配置文件,导致springboot应用启动报错:
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).根本原因:
应用启动之后,发现pom中引入了数据库依赖,但是没有找到对应的数据库配置信息,也没有在配置类中进行配置,所以会引发此错误。
stackoverflow原答案链接:
java - Spring Boot - Cannot determine embedded database driver class for database type NONE - Stack Overflow
解决办法:把配置文件放到classes文件夹下即可



