【springboot连接 MYSQL数据库出问题 _springboot 】 | IT修真院·坑乎
咨询电话 : 010-59478634
切换导航
首页
我的提问
我的回答
我的点赞
消息通知
个人主页
×
提示
尚未登陆,前往官网登陆?
×
提示
尚未登陆,前往官网登陆?
springboot连接 MYSQL数据库出问题
我也踩过这个坑(
1
)
已统计您的踩坑,无需重复点击
回答(2)
springboot
详细描述
连接数据库报错:Cannot determine embedded database drive
错误截图
*************************** 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). Disconnected from the target VM, address: '127.0.0.1:58559', transport: 'socket' Process finished with exit code 1
源码
Spring: datebase: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/spring-cloud?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8 username: root password: 123456 jpa: hibernate: ddl-auto: create # 第一次简表create 后面用update show-sql: true
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2018-09-12 22:51:50.598 ERROR 22664 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** 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). Disconnected from the target VM, address: '127.0.0.1:58559', transport: 'socket'
编辑于2024-11-24
时间排序
热门排序
[郑州|荣耀师兄]JAVA-王耀琪
0
没有配置数据源就报这个错,应该写datasource不是database。
查看全部>
编辑于2018-10-19
[上海|荣耀师兄]JAVA-朱明星
0
你确定不是database没写错,明显的不是写成了datebase???
查看全部>
编辑于2018-12-10
首页
1
末页
去第
页
确定
Copyright ©2015 北京葡萄藤信息技术有限公司 All Rights Reserved | 京ICP备15035574号-1
复制链接
新浪微博
微信扫一扫
2672
0
10
springboot连接 MYSQL数据库出问题
2
1