我想看看我的应用程序(使用 spring boot 编写的)是否启用了事务管理。
我怎样才能以编程方式和通过代码检查(注释等)来做到这一点?
最佳答案
手动或以编程方式(使用 AnnotationUtils)在您的应用程序中查找 EnableTransactionManagement 注释。
或者打开事务跟踪:
logging.level.org.springframework.transaction.interceptor=TRACE
另见 this post
关于spring-boot - 如何查看我的 Spring Boot 应用程序中是否启用了事务管理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42713602/