課程
/后端開發(fā)
/Java
/2小時學會Spring Boot
按視頻寫的為啥連不上數(shù)據(jù)庫
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
把配置文件,發(fā)出來。
紅波_bo
配置對了嗎?url,user,password
舉報
Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
2017-09-15
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
這樣才對
2017-05-09
視頻上沒有dbcp2:
2017-03-31
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
2017-03-23
把配置文件,發(fā)出來。
2017-03-23
配置對了嗎?url,user,password