哪些接口要加@Transactional注解
时间: 2023-10-13 10:04:22 浏览: 94
Spring声明式事务@Transactional知识点分享
根据所提供的引用内容,可以得出以下结论:
- 接口上应该避免使用@Transactional注解,因为如果将@Transactional标注在接口上并使用了Spring AOP的CGLib动态代理,@Transactional注解将失效。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [@Transactional注解](https://blog.csdn.net/qq_50560491/article/details/124026870)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [@Transactional 注解使用分析](https://blog.csdn.net/weixin_56018532/article/details/126166506)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文