optimize code

This commit is contained in:
2023-10-16 15:32:45 +08:00
parent 42c4a90f87
commit 1fcd468581

View File

@@ -58,14 +58,14 @@ class SecurityConfig(
authorizeHttpRequests authorizeHttpRequests
// Allow anonymous access // Allow anonymous access
.requestMatchers( .requestMatchers(
"/login",
"/error/thrown", "/error/thrown",
"/doc.html", "/doc.html",
"/swagger-ui/**", "/swagger-ui/**",
"/webjars/**", "/webjars/**",
"/v3/**", "/v3/**",
"/swagger-ui.html", "/swagger-ui.html",
"/favicon.ico" "/favicon.ico",
"/login",
).anonymous() ).anonymous()
// Authentication required // Authentication required
.anyRequest().authenticated() .anyRequest().authenticated()