فهرست منبع

Update SecurityConfig.java

macro 4 سال پیش
والد
کامیت
934883648b
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      mall-demo/src/main/java/com/macro/mall/demo/config/SecurityConfig.java

+ 0 - 1
mall-demo/src/main/java/com/macro/mall/demo/config/SecurityConfig.java

@@ -31,7 +31,6 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
     protected void configure(HttpSecurity http) throws Exception {
         http.authorizeRequests()//配置权限
 //                .antMatchers("/").access("hasRole('TEST')")//该路径需要TEST角色
-                .antMatchers("/").authenticated()//该路径需要登录认证
 //                .antMatchers("/brand/list").hasAuthority("TEST")//该路径需要TEST权限
                 .antMatchers("/**").permitAll()
                 .and()//启用基于http的认证