诡异! log4j查看日志显示delete语句执行成功,去查看数据库,数据没被删除,这是啥原因呢
DEBUG [http-nio-8080-exec-18] - ooo Using Connection [com.mysql.jdbc.Connection@c5dce63]
DEBUG [http-nio-8080-exec-18] - ==> Preparing: select id,command,description,content from message
DEBUG [http-nio-8080-exec-18] - ==> Parameters:
DEBUG [http-nio-8080-exec-18] - <== Total: 4
DEBUG [http-nio-8080-exec-26] - ooo Using Connection [com.mysql.jdbc.Connection@7fb8fb34]
DEBUG [http-nio-8080-exec-26] - ==> Preparing: delete from message where id=?
DEBUG [http-nio-8080-exec-26] - ==> Parameters: 1(Integer)
DEBUG [http-nio-8080-exec-26] - <== Updates: 1
但是查看数据库并没有删除,不知道是什么原因。。