Cannot determine embedded database driver class for database type NONE 异常解决办法
程序员文章站
2024-03-24 13:38:16
...
启动SpringBoot 应用时,报异常:
Description:
Cannot determine embedded database driver class for database type NONE
如图所示:
解决办法:
在项目application.properties文件中,添加数据源相关配置:
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=ROOT
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.max-idle=10
spring.datasource.max-wait=10000
spring.datasource.min-idle=5
spring.datasource.initial-size=5
推荐阅读
-
Cannot determine embedded database driver class for database type NONE 异常解决办法
-
SpringBoot项目在启动时出现了Cannot determine embedded database driver class for database type NONE 错误
-
SpringBoot war包tomcat运行启动报错(Cannot determine embedded database driver class for
-
SpringBoot启动报错Cannot determine embedded database driver class for database type NONE
-
SpringBoot war包tomcat运行启动报错(Cannot determine embedded database driver class for