为了账号安全,请及时绑定邮箱和手机立即绑定

续的内容、、、、

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接口都是对应,3.jdbc配置也没问题,mapper.xml和mapper接口也配置对的


正在回答

1 回答

根据报错的提示,好像是连接不到数据库/被数据库给拒绝了,检查下配置的数据库相关信息把

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

续的内容、、、、

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信