This commit is contained in:
雷欧(林平凡)
2025-06-16 17:25:54 +08:00
parent d733f47e92
commit faab92e9b5

View File

@@ -45,7 +45,7 @@ public class SecurityConfig {
.addFilterBefore(jwtAuthFilter, UsernamePasswordAuthenticationFilter.class) .addFilterBefore(jwtAuthFilter, UsernamePasswordAuthenticationFilter.class)
.authenticationProvider(provider) .authenticationProvider(provider)
.authorizeHttpRequests(auth -> auth .authorizeHttpRequests(auth -> auth
.requestMatchers("/auth/login", "/auth/captcha","wx/message").permitAll() .requestMatchers("/auth/login", "/auth/captcha","/wx/message").permitAll()
.anyRequest().authenticated()); .anyRequest().authenticated());
return http.build(); return http.build();