admin管理员组

文章数量:1618710

CommunicationsException: Communications link failure数据库报错问题

首先先检查mapping.xml中mapper类的包名是否正确,查询语句返回参数设置是否正确 检查mapper中的方法名与mapping中的是否一致 检查application配置文件中mybatis的配置,classpath后没有 mapping.xml放在resources目录下 以上问题无误后,可以通过单元测试查看数据库连接是否有问题,如存在问题。

Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause

本文标签: 报错数据库CommunicationsCommunicationsExceptionfailure