当前位置:网站首页>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]]
边栏推荐
- FortiGate firewall and Aruze cloud tunnel interruption
- 基于海康EhomeDemo工具排查公网部署出现的视频播放异常问题
- Threejs realizes the simulation of river, surface flow, pipe flow and sea surface
- Troubleshooting of abnormal communication between FortiGate and fortiguard cloud
- Myrpc version 6
- Refers to the difference between IP and *ip at output
- Concatenation of Languages(UVA10887)
- Errno and PERROR
- FortiGate firewall configuration link detection link monitor and status query
- 01 backpack, dynamic planning
猜你喜欢

iMile 利用 Zadig 多云环境周部署千次,跨云跨地域持续交付全球业务

Introduction to system programming
![Salary management system based on servlet+jsp+mysql [source code + database]](/img/4a/6015cf17f4297691e97b48a5592fc5.png)
Salary management system based on servlet+jsp+mysql [source code + database]

Configure specific source IP in SLA detection of FortiGate sdwan

SQLyog导入数据库时报错,求帮解决!
![Tea mall system based on SSM framework [project source code + database script + report]](/img/d9/0a46c0da9839a7186bd3a9ae55f0a5.png)
Tea mall system based on SSM framework [project source code + database script + report]

什么是光耦电路,实际使用中应该注意些什么?

Use of thread pool

Anonymous pipeline for interprocess communication

OneNote production schedule
随机推荐
Imile uses Zadig's multi cloud environment to deploy thousands of times a week to continuously deliver global business across clouds and regions
If you encounter problems when using spark for the first time, please ask for help
Sql语句遇到的错误,求解
2021-07-14
FortiGate firewall configuration link detection link monitor and status query
Troubleshooting of abnormal communication between FortiGate and fortiguard cloud
Qt 6.3.1Conan软件包发布
A solution to the problem of "couldn't open file /mnt/repodata/repomd.xml"
Idea grey screen problem
Introduction to system programming
How to write a conditional statement to obtain the value of the maximum time in a table using a MySQL statement
Everyone, Flink 1.13.6, mysql-cdc2.2.0, the datetime (6) class extracted
How the FortiGate firewall rejects a port by using the local in policy policy
JS reflect
Troubleshoot abnormal video playback problems in public network deployment based on Haikang ehomedemo tool
Named pipes for interprocess communication
Code cloud fatal: authentication failed for
Detailed explanation of data link layer
Basic knowledge of redis
FortiGate performs DNAT mapping, and intranet users cannot normally access the mapping