zoukankan      html  css  js  c++  java
  • The last packet successfully received from the server was 2,272 milliseconds ago. The last packet sent successfully to the server was 2,258 milliseconds ago.

    报错

    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 2,272 milliseconds ago.  The last packet sent successfully to the server was 2,258 milliseconds ago.
    ### The error may exist in pers/gs/dao/UserMapper.xml
    ### The error may involve pers.gs.dao.UserDao.getUserList
    ### The error occurred while executing a query
    ### Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    
    The last packet successfully received from the server was 2,272 milliseconds ago.  The last packet sent successfully to the server was 2,258 milliseconds ago.
    

    原因

    在网上查询许多,没有解决问题,最后考虑到我的数据库连接字符串

    jdbc:mysql://localhost:3306/mybatis?useSSL=true&userUnicode=true&characterEncoding=UTF-8
    

    解决方法

    useSSL=true改为useSSL=false

  • 相关阅读:
    在小程序中实现 Mixins 方案
    watch监听(数组或者对象)
    --socket---网络通信---
    requests实战之破解百度翻译
    nmap命令
    selenium模块的基本使用
    谷歌无头浏览器+反检测
    模拟登录QQ空间
    动作链和iframe的处理
    selenium其他自动化操作
  • 原文地址:https://www.cnblogs.com/fengxiaoqi/p/12932764.html
Copyright © 2011-2022 走看看