问答详情
源自:4-4 实现单条信息删除

删除单条记录出错!!!

585cf4f8000116ae05000153.jpg

585cf4f80001622005000225.jpg

585cf4f90001421405000271.jpg

585cf4f900016c4205000237.jpg

报错信息:

org.apache.ibatis.exceptions.PersistenceException: 

### Error updating database.  Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for Message.deleteOne6

### Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for Message.deleteOne6

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)

at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:172)

at org.apache.ibatis.session.defaults.DefaultSqlSession.delete(DefaultSqlSession.java:180)

at com.dao.MessageDao.deleteOne(MessageDao.java:47)

at com.service.MaintainService.deleteOne(MaintainService.java:16)

at com.servlet.DeleteOneServlet.doPost(DeleteOneServlet.java:48)

at com.servlet.DeleteOneServlet.doGet(DeleteOneServlet.java:38)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)


Caused by: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for Message.deleteOne6

at org.apache.ibatis.session.Configuration$StrictMap.get(Configuration.java:832)

at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:665)

at org.apache.ibatis.session.Configuration.getMappedStatement(Configuration.java:658)

at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:169)


... 28 more


提问者:四叶草旳眼泪3386375 2016-12-23 17:59

个回答

  • 四叶草旳眼泪3386375
    2016-12-23 19:47:15

    已经自己调好啦