This commit is contained in:
Mrhongxing committed 2026-11-12 02:49:08 +08:00
1 parent 68780851dd
commit 619e5665e2
16 files changed
+368 -45

No files matched your search

@@ -44,7 +44,7 @@ public class SecurityConfig {
// ← 授权规则:两种模式二选一,见下文
.authorizeHttpRequests(authz -> authz
.requestMatchers("/apiForChargingStation/user/login", "/apiForChargingStation/user/register", "/error").permitAll()
.requestMatchers("/apiForTianze/login", "/apiForTianze/register", "/error", "/apiForTianze/addUser", "/apiForTianze/loginByToken").permitAll()
.anyRequest().authenticated()
)