Mapped Statements collection does not contain value

来源:互联网 发布:会展中心设计方案 网络 编辑:程序博客网 时间:2024/06/14 17:23

今天做项目时忘记在mapper.xml中写添加的sql语句,异常如下。

严重: Servlet.service() for servlet [spingmvc] in context with path [/jk1111] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error updating database.  Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for cn.itcast.jk.mapper.FactoryMapper.insert### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for cn.itcast.jk.mapper.FactoryMapper.insert] with root causejava.lang.IllegalArgumentException: Mapped Statements collection does not contain value for cn.itcast.jk.mapper.FactoryMapper.insert    at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:775)    at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:615)
阅读全文
0 0