Mybatis初体验之都是useSSL=true惹得祸

今天第一次接触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 1,124 milliseconds ago.  The last packet sent successfully to the server was 1,111 milliseconds ago.
### The error may exist in com/qjf/dao/UserMapper.xml
### The error may involve com.qjf.dao.UserDao.getUserList
### The error occurred while executing a query
### Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

那真的是百思不得,以为是自己的问题,然后看着视频检查,花了我好久好久。我知道肯定是跟数据库有关,然后就仔细看mybatis-config.xml里面。结果还是一无所获,那是一个绝望呀

<!DOCTYPE configuration
        PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-con
  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值