Mapped Statements collection does not contain value

xiaoxiao2021-02-28  116

今天做项目时忘记在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 cause java.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)
转载请注明原文地址: https://www.6miu.com/read-24744.html

最新回复(0)