update 子服务鉴权排除健康检查

2.X
疯狂的狮子Li 3 years ago
parent bf151c5db2
commit 7d7e62888c

@ -52,6 +52,7 @@ public class SecurityConfiguration implements WebMvcConfigurer {
public SaServletFilter getSaServletFilter() {
return new SaServletFilter()
.addInclude("/**")
.addExclude("/actuator/**")
.setAuth(obj -> SaIdUtil.checkCurrentRequestToken())
.setError(e -> SaResult.error("认证失败,无法访问系统资源").setCode(HttpStatus.UNAUTHORIZED));
}

Loading…
Cancel
Save