|
|
@ -54,7 +54,7 @@ public class SecurityConfiguration { |
|
|
|
anonymousUrls.addAll(requestCondition.getPatterns()); |
|
|
|
anonymousUrls.addAll(requestCondition.getPatterns()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
anonymousUrls.forEach(s -> log.info("宝象购可以匿名访问的url:{}", s)); |
|
|
|
// anonymousUrls.forEach(s -> log.info("宝象购可以匿名访问的url:{}", s));
|
|
|
|
registry.antMatchers(anonymousUrls.toArray(new String[0])).anonymous(); |
|
|
|
registry.antMatchers(anonymousUrls.toArray(new String[0])).anonymous(); |
|
|
|
// Swagger 接口文档
|
|
|
|
// Swagger 接口文档
|
|
|
|
registry.antMatchers("/swagger-ui.html").anonymous() |
|
|
|
registry.antMatchers("/swagger-ui.html").anonymous() |
|
|
@ -66,6 +66,8 @@ public class SecurityConfiguration { |
|
|
|
.antMatchers("/actuator/**").anonymous(); |
|
|
|
.antMatchers("/actuator/**").anonymous(); |
|
|
|
// Druid 监控
|
|
|
|
// Druid 监控
|
|
|
|
registry.antMatchers("/druid/**").anonymous(); |
|
|
|
registry.antMatchers("/druid/**").anonymous(); |
|
|
|
|
|
|
|
// 首页
|
|
|
|
|
|
|
|
registry.antMatchers("/").anonymous(); |
|
|
|
// Spring Boot Admin Server 的安全配置
|
|
|
|
// Spring Boot Admin Server 的安全配置
|
|
|
|
registry.antMatchers(adminSeverContextPath).anonymous() |
|
|
|
registry.antMatchers(adminSeverContextPath).anonymous() |
|
|
|
.antMatchers(adminSeverContextPath + "/**").anonymous(); |
|
|
|
.antMatchers(adminSeverContextPath + "/**").anonymous(); |
|
|
|