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

Can interceptors provide sorting support? #3293

Open
littlestar2125 opened this issue Nov 5, 2024 · 0 comments
Open

Can interceptors provide sorting support? #3293

littlestar2125 opened this issue Nov 5, 2024 · 0 comments

Comments

@littlestar2125
Copy link

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

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