课程
/后端开发
/Java
/2小时学会Spring Boot
按视频写的为啥连不上数据库
2017-03-23
源自:2小时学会Spring Boot 5-1
正在回答
spring: profiles: active: test datasource: data-username: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/dbgirl username: root password: root jpa: hibernate: ddl-auto: update show-sql: true
这样才对
视频上没有dbcp2:
spring: datasource: dbcp2: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/dbgirl username: root password: 123456 jpa: hibernate: ddl-auto: create show-sql: true
把配置文件,发出来。
红波_bo
配置对了吗?url,user,password
举报
Spring Boot入门视频教程,你将学会使用Spring Boot快速构建应用程序
购课补贴联系客服咨询优惠详情
慕课网APP您的移动学习伙伴
扫描二维码关注慕课网微信公众号