删除单条记录出错!!!
报错信息:
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