解决:
registry.addInterceptor(**).order(Integer.MAX_VALUE);//越大优先级越低
|
@Override public void addInterceptors(InterceptorRegistry registry) { //添加拦截器 registry.addInterceptor(apiGlobalInterceptor).order(Integer.MAX_VALUE); } |
@Configuration @AutoConfigureAfter 貌似不行