ERROR QUERYING DATABASE. CAUSE: COM.MYSQL.JDBC.EXCEPTIONS.JDBC4.COMMUNICATIONSEXCEPTION: COMMUNICAT
標簽: mybatis
在第一個mybatis程序時:錯誤
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 7,200 milliseconds ago. The last packet sent successfully to the server was 7,195 milliseconds ago.
### The error may exist in com/kuang/dao/UserMapper.xml
### The error may involve com.kuang.dao.UserDao.getUserList
### The error occurred while executing a query
### Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
-
org.apache.ibatis.exceptions.PersistenceException:
-
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
-
-
The last packet successfully received from the server was 7,200 milliseconds ago. The last packet sent successfully to the server was 7,195 milliseconds ago.
-
### The error may exist in com/kuang/dao/UserMapper.xml
-
### The error may involve com.kuang.dao.UserDao.getUserList
-
### The error occurred while executing a query
-
### Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
解決:
將URL中的:useSSL=true
改為:useSSL=false