2 xuxiaoyinliu xuxiaoyinliu 于 2016.02.20 19:46 提问

求助:Mybatis不提交更新是怎么回事???

附上日志:
DEBUG [main] - Logging initialized using 'class org.apache.ibatis.logging.log4j.Log4jImpl' adapter.
DEBUG [main] - PooledDataSource forcefully closed/removed all connections.
DEBUG [main] - PooledDataSource forcefully closed/removed all connections.
DEBUG [main] - PooledDataSource forcefully closed/removed all connections.
DEBUG [main] - PooledDataSource forcefully closed/removed all connections.
DEBUG [main] - Opening JDBC Connection
DEBUG [main] - Created connection 38544126.
DEBUG [main] - Setting autocommit to false on JDBC Connection [com.mysql.jdbc.JDBC4Connection@24c22fe]
DEBUG [main] - ==> Preparing: UPDATE N1 SET NAME=? WHERE ID=?
DEBUG [main] - ==> Parameters: xu(String), 1(Integer)
DEBUG [main] - <== Updates: 1
到这里就断了,什么原因???

1个回答

xuxiaoyinliu
xuxiaoyinliu   2016.02.20 19:52

尴尬,SqlSession忘记commit了

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!