https://github.com/toquery/example-spring-boot-mult-svc-impl-transaction
多个SVC实现时,数据库事务回滚问题,也就是@Bean 和 @Service 注册的bean对事物的影响
https://github.com/toquery/example-spring-boot-mult-svc-impl-transaction
Last synced: 4 months ago
JSON representation
多个SVC实现时,数据库事务回滚问题,也就是@Bean 和 @Service 注册的bean对事物的影响
- Host: GitHub
- URL: https://github.com/toquery/example-spring-boot-mult-svc-impl-transaction
- Owner: ToQuery
- Created: 2022-08-05T06:53:42.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T09:37:17.000Z (11 months ago)
- Last Synced: 2024-12-28T05:25:50.704Z (6 months ago)
- Language: Java
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
多个SVC实现时,数据库事务回滚问题,也就是@Bean 和 @Service 注册的bean对事物的影响
验证地址:
- http://localhost:8080/user/list
- http://localhost:8080/user/save
- http://localhost:8080/user/save-error1. 情况一:使用@Service对事物无影响
2. 情况二:使用@Bean对事物无影响