SpringBoot判断当前方法是否在事务中
1.
TransactionSynchronizationManager.getCurrentTransactionName()
2.debug模式进入Step Into F7,如果是进入org.springframework.aop.framework.CglibAopProxy.DynamicAdvisedInterceptor#intercept则说明被代理了,没有进入就不是事务。