删除单条记录出错!!!

来源:4-4 实现单条信息删除

四叶草旳眼泪3386375

2016-12-23 17:59

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


写回答 关注

1回答

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

    已经自己调好啦

    kalick

    怎么调的,我也出现这个错误,求解答

    2017-06-24 22:53:44

    共 1 条回复 >

通过自动回复机器人学Mybatis---基础版

微信公众号自动回复功能学习Mybatis,基础教程加案例实战方式学习

107410 学习 · 786 问题

查看课程

相似问题