@Transactional
- 无事务注解
2018-03-07 23:55:57.848 [http-nio-8205-exec-1] DEBUG m.c.c.c.r.x.g.S.insertSelective - <== Updates: 1
2018-03-07 23:55:57.849 [http-nio-8205-exec-1] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7d3e617a]
- 有事务注解,报异常,回滚
2018-03-07 23:58:52.751 [http-nio-8205-exec-1] DEBUG m.c.c.c.r.x.g.S.insertSelective - <== Updates: 1
2018-03-07 23:58:52.752 [http-nio-8205-exec-1] DEBUG org.mybatis.spring.SqlSessionUtils - Releasing transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@76bfe4e0]
2018-03-07 23:59:07.351 [http-nio-8205-exec-1] DEBUG org.mybatis.spring.SqlSessionUtils - Transaction synchronization deregistering SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@76bfe4e0]
2018-03-07 23:59:07.351 [http-nio-8205-exec-1] DEBUG org.mybatis.spring.SqlSessionUtils - Transaction synchronization closing SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@76bfe4e0]
2018-03-07 23:59:07.365 [http-nio-8205-exec-1] ERROR com.cpic.caf.rsp.hsp.api.SchemeInfoApi - failed
java.lang.NullPointerException: null
网友评论