mybatis不能交互数据库

Caused by: org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
学习mybatis的时候,之前idea是能连上mysql的,突然说jdbc不能交互数据库

原因是在使用数据库管理工具的时候出现了太多的连接导致无法连接到数据库,解决方法是将Navicat中打开的表关闭即可。

原文地址:https://www.cnblogs.com/huangui/p/12935464.html