This commit is contained in:
雷欧(林平凡)
2025-06-16 16:52:57 +08:00
parent b8ba94612b
commit 959abb6845
2 changed files with 2 additions and 2 deletions

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("/login", "/captcha").permitAll() .requestMatchers("/auth/login", "/auth/captcha").permitAll()
.anyRequest().authenticated()); .anyRequest().authenticated());
return http.build(); return http.build();

View File

@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.*;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@RestController @RestController
@RequestMapping("/api/auth") @RequestMapping("/auth")
public class AuthController { public class AuthController {
private static final Logger logger = LoggerFactory.getLogger(AuthController.class); private static final Logger logger = LoggerFactory.getLogger(AuthController.class);