這個(gè)報(bào)錯(cuò),數(shù)據(jù)庫沒連上?用戶名密碼還有URL都是對的
com.alibaba.druid.pool.DruidDataSource? ?: create connection error, url: jdbc:mysql://127.0.0.1:3306/dbgirl?characterEncoding=utf8&useSSL=true, errorCode 1045, state 28000
配置文件
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/dbgirl?characterEncoding=utf8&useSSL=true
spring.datasource.data-username=root
pring.datasource.data-password=root
spring.datasource.druid.initial-size=1
spring.datasource.druid.min-idle=1
spring.datasource.druid.max-active=20
spring.datasource.druid.test-on-borrow=true
spring.datasource.druid.stat-view-servlet.allow=true
2018-08-14
有對應(yīng)的數(shù)據(jù)庫和啟動(dòng)mysql服務(wù)嗎?
2018-10-15
spring.datasource.data-username=root
pring.datasource.data-password=root
配置不對,應(yīng)該是
spring.datasource.username=root
pring.datasource.password=root
小細(xì)節(jié),折騰好久