慕仰2141351
2017-08-22 23:58
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.
这个是报错信息 早上运行都还是可以的 晚上运行就不行了 求大神指教
同样的问题
同样遇到这个问题,请问解决了吗?
mapper.xml的resultType代表的是List中的元素类型,而不应该是List本身,所以修改mapper.xml文件
Java高并发秒杀API之Service层
59897 学习 · 137 问题
相似问题