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

启动成功以后点击登录接口报错

程序里的报错:

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.

点击登录接口后网页里的报错:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Wed Apr 06 22:24:48 EDT 2022

There was an unexpected error (type=Internal Server Error, status=500).

nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. ### The error may exist in file [C:\Users\njlsh\IdeaProjects\IDEA demo project\target\classes\mapper\UserMapper.xml] ### The error may involve com.imooc.demo.mapper.UserMapper.findByLoginName ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.



正在回答

1 回答

连接数据库那错了

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

举报

0/150
提交
取消

启动成功以后点击登录接口报错

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