(编程新手)
问题描述:
(核心错误提示)
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause:
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create
PoolableConnectionFactory (Client does not support authentication protocol requested by server; consider upgrading MySQL client)
### The error may exist in com/zwh1730090431/po/StudentMapper.xml
### The error may involve com.zwh1730090431.po.StudentMapper.findStudentById
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (Client does not support authentication protocol requested by server; consider upgrading MySQL client)
拿不到连接?
解决办法:
更换高版本jar包。把原来5.x更换为8.x。如下图所示。
问题出现原因:
不知道。
其他触发并解决这个问题的连接:
https://www.jianshu.com/p/582ae6d91154
https://www.cnblogs.com/spec-dog/p/6226212.html
https://blog.csdn.net/wls666/article/details/89886656
https://blog.csdn.net/Ltp_Ltp/article/details/85603199
https://www.cnblogs.com/noino/p/10882598.html
https://www.cnblogs.com/HHR-SUN/p/7580412.html