Skip to content

Can interceptors provide sorting support? #3293

Open
@littlestar2125

Description

@littlestar2125

Hello, I have created an interceptor, but I found that it conflicts with the order of other interceptors. The other interceptors are also imported through automatic configuration. Therefore, my current approach is to exclude the automatically configured files and add the relevant intercepters myself. However, I feel that this method is not elegant. Can we add sorting support for interceptors so that the interceptors we add can be ordered as desired?

Probably just need to reorder the interceptors when adding them in the InterceptorChain class.

now my enviroment is mybatis-spring-boot-starter

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions