admin管理员组文章数量:1571388
在eclipse中启动Springboot,报错如下
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).
当你确定你的jdbc配置文件application.properties里的东西没有写错
spring.datasource.url=jdbc:mysql://xxxxx
spring.datasource.username=xxx
spring.datasource.password=xxx
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.max-idle=3
spring.datasource.max-wait=10000
spring.datasource.min-idle=1
spring.datasource.initial-size=1
那么只能是一种问题:文件位置放错了,请将你的配置文件放在resource根目录下!!!
因为对于springboot来说,约定大于配置!
本文标签: 报错连接池EclipseSpringBootjdbc
版权声明:本文标题:eclipse中Springboot启动,jdbc连接池报错 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1727690295a1125786.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论