|
@@ -24,11 +24,9 @@ public class SecurityConfiguration {
|
|
|
public void customize(AuthorizeHttpRequestsConfigurer<HttpSecurity>.AuthorizationManagerRequestMatcherRegistry registry) {
|
|
|
// Swagger 接口文档
|
|
|
registry.requestMatchers("/v3/api-docs/**").permitAll()
|
|
|
- .requestMatchers("/swagger-ui.html").permitAll()
|
|
|
- .requestMatchers("/swagger-ui/**").permitAll()
|
|
|
- .requestMatchers("/swagger-resources/**").permitAll()
|
|
|
.requestMatchers("/webjars/**").permitAll()
|
|
|
- .requestMatchers("/*/api-docs").permitAll();
|
|
|
+ .requestMatchers("/swagger-ui.html").permitAll()
|
|
|
+ .requestMatchers("/swagger-ui/**").permitAll();
|
|
|
// Spring Boot Actuator 的安全配置
|
|
|
registry.requestMatchers("/actuator").permitAll()
|
|
|
.requestMatchers("/actuator/**").permitAll();
|