没有报错 也有删除掉 删除了 再次查询 数据有查出来了

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

慕粉3567134

2016-11-03 21:30

2016-11-03 21:23:48,921 [http-bio-8080-exec-3] DEBUG [Message.getMessages] - ==>  Preparing: select ID,COMMAND,DESCRIPTION,CONTENT from MESSAGE where 1 = 1 

2016-11-03 21:23:48,973 [http-bio-8080-exec-3] DEBUG [Message.getMessages] - ==> Parameters: 

2016-11-03 21:23:48,993 [http-bio-8080-exec-3] DEBUG [Message.getMessages] - <==      Total: 6

2016-11-03 21:23:55,643 [http-bio-8080-exec-4] DEBUG [Message.deleteMessage] - ==>  Preparing: delete from MESSAGE where ID = ? 

2016-11-03 21:23:55,644 [http-bio-8080-exec-4] DEBUG [Message.deleteMessage] - ==> Parameters: 2(Integer)

2016-11-03 21:23:55,665 [http-bio-8080-exec-4] DEBUG [Message.deleteMessage] - <==    Updates: 1

2016-11-03 21:24:04,504 [http-bio-8080-exec-5] DEBUG [Message.getMessages] - ==>  Preparing: select ID,COMMAND,DESCRIPTION,CONTENT from MESSAGE where 1 = 1 

2016-11-03 21:24:04,504 [http-bio-8080-exec-5] DEBUG [Message.getMessages] - ==> Parameters: 

2016-11-03 21:24:04,505 [http-bio-8080-exec-5] DEBUG [Message.getMessages] - <==      Total: 6

刚进入List.jsp  查询有6条   删除一条后  再执行查询所有的  还是6条   啥情况

写回答 关注

2回答

  • _Kono
    2016-11-14 21:11:15
    已采纳

    可能是sqlsession没有提交

    慕粉3567...

    非常感谢!

    2016-11-21 09:46:54

    共 1 条回复 >

  • 慕粉3567134
    2016-11-03 21:41:52

    因为 事务-,-

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

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

107410 学习 · 786 问题

查看课程

相似问题