1
This commit is contained in:
@@ -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() // 启用默认登录页
|
||||
|
||||
Reference in New Issue
Block a user