續(xù)的內(nèi)容、、、、
java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://localhost:3306/springboot?useUnicode=true&characterEncoding=utf8&useSSL=true&lazyInit=true, username = root.
Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
1.連接是用mysql沒問題,2.mapper.xml 和mapper接口都是對(duì)應(yīng),3.jdbc配置也沒問題,mapper.xml和mapper接口也配置對(duì)的
2021-08-15
根據(jù)報(bào)錯(cuò)的提示,好像是連接不到數(shù)據(jù)庫/被數(shù)據(jù)庫給拒絕了,檢查下配置的數(shù)據(jù)庫相關(guān)信息把