Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CurdController是不是该加个@Transactional注解? #6

Open
izhoutao opened this issue Nov 15, 2019 · 0 comments
Open

CurdController是不是该加个@Transactional注解? #6

izhoutao opened this issue Nov 15, 2019 · 0 comments

Comments

@izhoutao
Copy link

CurdController直接注入了BaseMapper接口,这样CurdController是不是该加个@transactional注解?不过如果加了,Controller里想添加或覆盖CurdController的方法并且通过注入的service来实现业务逻辑的话,那是不是还得在service上加@transactional注解?这样是不是造成没必要的嵌套事务了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant