Skip to content

Commit

Permalink
feat: 调整devx拦截器优先级配置字段类型为Int #1335
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlkl committed Oct 27, 2023
1 parent 42ed8cb commit e49b37e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class SecurityAutoConfiguration {
// 不应用到服务间调用
registry.addInterceptor(DevxSrcIpInterceptor(properties))
// 需要在[httpAuthInterceptor]之后执行才能取得用户信息, 100为随机取值
.order(properties.interceptorOrder.toInt())
.order(properties.interceptorOrder)
.excludePathPatterns("/service/**", "/replica/**")
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ data class DevxProperties(
/**
* devx拦截器优先级,如果需要取用户信息优先级需要比[HttpAuthInterceptor]拦截器低
*/
var interceptorOrder: Long = (Ordered.LOWEST_PRECEDENCE - 100).toLong(),
var interceptorOrder: Int = Ordered.LOWEST_PRECEDENCE - 100,
)

0 comments on commit e49b37e

Please sign in to comment.