问答详情
源自:4-1 使用集成测试Service逻辑

报错 求帮助

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: An attempt by a client to checkout a Connection has timed out.

### The error may exist in file [E:\seckill2\target\classes\mapper\SeckillDao.xml]

### The error may involve org.seckill.dao.SeckillDao.queryAll

### The error occurred while executing a query

### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.

这个是报错信息 早上运行都还是可以的 晚上运行就不行了  求大神指教

提问者:慕仰2141351 2017-08-22 23:58

个回答

  • MartinCode
    2018-02-13 21:25:52

    同样的问题

  • qq_Denfance_0
    2017-10-25 15:34:49

    同样遇到这个问题,请问解决了吗?

  • 世上无难事_只要肯放弃
    2017-08-25 22:45:32

    mapper.xml的resultType代表的是List中的元素类型,而不应该是List本身,所以修改mapper.xml文件