This commit is contained in:
2025-08-31 02:08:17 +08:00
parent 3960baa105
commit 0cfa0b9bbf

View File

@@ -21,6 +21,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
http.authorizeRequests()
.antMatchers("/admin/**").hasRole("ADMIN") // 设置admin/**路径需要ADMIN角色
.antMatchers("/wx/**").permitAll()
.antMatchers("/wecom/**").permitAll()
.anyRequest().authenticated() // 其他请求需要认证
.and()
.formLogin() // 启用默认登录页