Skip to content

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

Open

Description

@izhoutao

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions