看了一下源码,addInterceptor 的实际返回类型是InterceptorRegistration ,里面order 初始化的值是0
addInterceptor
InterceptorRegistration
但 @Order 不带参数的默认值是Integer.MAX_VALUE
@Order
Integer.MAX_VALUE
想问一下,拦截器的顺序一般是如何安排的呢
还有一个疑问,为什么localeController重定向的时候,返回的地址带上了在拦截器里设置的locale和time参数?其他地址也会经过拦截器,至少设置了time参数,为什么就不会在返回的地址中显示?
Sign in to make a reply
就是有气派
看了一下源码,
addInterceptor
的实际返回类型是InterceptorRegistration
,里面order 初始化的值是0但
@Order
不带参数的默认值是Integer.MAX_VALUE
想问一下,拦截器的顺序一般是如何安排的呢