标题1.Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
不能匹配。
原因是:配置文件中的id 方法名和dao 接口中的方法名不一致。
标题2.executor.ExecutorException: Statement returned more than one row, where no more than one was expected.
原因:想要的结果是要一个对象,但是查出来的结果是一个List ,那么就超出了 resultType 设置的参数,修改返回值类型即可。
标题3.Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
原因:连接数据库失败异常
标题4.Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurejava.io.IOException: Could not find resource mybatis-conig.xml
原因:读取配置文件失败异常