当前位置:网站首页>Summary of the reasons why transactional doesn't work
Summary of the reasons why transactional doesn't work
2022-06-30 04:26:00 【mh0526】
One 、 The transaction configuration is correct , The reason why the transaction does not work :
- The exception is try{}catch(){} Caught , If there is an exception, it will not be rolled back .
- Use @Transactional Notes :
- To configure
- When this class is used @Transactional When the method of is called by other methods of this class that do not open transactions , Transaction will not be opened . Use @Transactional When a method of is called by another class , Start the transaction according to the normal transaction propagation behavior rules
Two 、 Under transaction sqlsession Log information
- In a transaction DefaultSqlSession The address of is the same
- 2017-01-18 13:23:07,067 DEBUG [org.mybatis.spring.SqlSessionUtils] - Creating a new SqlSession
2017-01-18 13:23:07,068 DEBUG [org.mybatis.spring.SqlSessionUtils] - Registering transaction synchronization for SqlSession [[email protected]]
2017-01-18 13:23:07,068 DEBUG [org.mybatis.spring.transaction.SpringManagedTransaction] - JDBC Connection [[email protected]] will be managed by Spring
2017-01-18 13:23:07,093 DEBUG [org.mybatis.spring.SqlSessionUtils] - Releasing transactional SqlSession [[email protected]]
2017-01-18 13:23:07,113 DEBUG [org.mybatis.spring.SqlSessionUtils] - Transaction synchronization rolling back SqlSession [[email protected]]
2017-01-18 13:23:07,113 DEBUG [org.mybatis.spring.SqlSessionUtils] - Transaction synchronization closing SqlSession [[email protected]]
边栏推荐
- SQL追加字段
- Troubleshooting of abnormal communication between FortiGate and fortiguard cloud
- SQL error caused by entity class: Oracle "ora-00904" error: possible case of invalid identifier
- With the deep integration of cloud platform, the "Xueba" objectscale in the object storage industry is coming
- Internship: interface case implementation
- Ora-00907: missing right parenthesis problem supplement
- Implementation steps of dynamic proxy
- JS file block to Base64 text
- The same node code will cause duplicate data
- Stack implementation integrated Calculator - code implementation
猜你喜欢

El upload upload file (manual upload, automatic upload, upload progress)

Mongodb learning

An error occurs when sqlyog imports the database. Please help solve it!

File and IO

Myrpc version 1

Troubleshoot abnormal video playback problems in public network deployment based on Haikang ehomedemo tool

基于海康EhomeDemo工具排查公网部署出现的视频播放异常问题

破局存量客群营销,试一下客户分群管理(含聚类模型等实操效果评估)

Blocking queue example

进程间通信之匿名管道
随机推荐
Websocket implementation principle
FortiGate firewall and Aruze cloud tunnel interruption
internship:接口案例实现
Unity when entering a string in the editor, escape the input of characters
Error Nova missingauthplugin: an auth plugin is required to determine endpoint URL
Daily summary of code knowledge
数据链路层详解
Es2018 key summary
01 backpack, dynamic planning
找到接口在表单里加参数
thinkphp5实现导入功能
lego_ Reading and summary of loam code
深度融合云平台,对象存储界的“学霸”ObjectScale来了
Indefinite parameters of JS function
Matlab reads fig file and restores signal
基于ROS的SLAM建图、自动导航、避障(冰达机器人)
JS file block to Base64 text
How to write a conditional statement to obtain the value of the maximum time in a table using a MySQL statement
Es2019 key summary
MySQL DDL change