@Transactional Several cases of transaction not rolling back after code exception in :
@Transactional Apply to non public On the way of decoration .
protected TransactionAttribute computeTransactionAttribute(Method method,
Class<?> targetClass) { // Don't allow no-public methods as required. if
(allowPublicMethodsOnly() && !Modifier.isPublic(method.getModifiers())) {
return null; }

Method calls in the same class , cause @Transactional invalid . For example, there is a class Test, One of its methods A,A Call the method of this class again B( Regardless of method B Yes public still private modification ), But the method A No annotation transaction declared , and B The methods are . Method is called externally A after , method B 's business won't work .
use try   catch It's your fault catch“ Eat ” cause @Transactional invalid

©2019-2020 Toolsou All rights reserved,
Python Basic knowledge and notes Programmer Tanabata Valentine's Day confession code NOI2019 travels China's longest high speed rail officially opened ! The fastest way to finish the race 30.5 hour C Language programming to find a student's grade Software testing BUG describe ESP8266/ESP32 System : Optimize system startup time Unity Scene loading asynchronously ( Implementation of loading interface ) Baidu , Ali , Tencent's internal position level and salary structure , With job suggestions !PYTHON Summary of final review