数据库异常:
Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Communications link failure during rollback(). Transaction resolution unknown.
原因:
使用创建的SqlSession,在使用完mybatis后,没有关闭
解决:
sqlSession.close();