1.MyBatis BUG
1
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.jt.mapper.DemoUserMapper.selectChoose'. It's likely that neither a Result Type nor a Result Map was specified.
没有指定结果集地址
2
org.apache.ibatis.binding.BindingException: Type interface com.jt.mapper.DeptMapper is not known to the MapperRegistry.
xml映射文件与接口绑定处 路径不对
3
java.lang.IllegalArgumentException: Result Maps collection does not contain value for com.jt.mapper.EmpMapper.empRM
注意 两者应匹配
4
org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.sql.SQLSyntaxErrorException: Unknown column 'id' in 'where clause'
库名 字段名是否写对
5
java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
检查yml文件url 路径 是否写对