my-csc-config-file.git 5 lat temu
rodzic
commit
88de473bd7

+ 1 - 2
src/main/java/com/unissoft/config/WebSecurityConfig.java

@@ -24,8 +24,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
24
         http.authorizeRequests()
24
         http.authorizeRequests()
25
                 .antMatchers("/actuator/**").permitAll()//不对springboot-admin监控的请求进行权限校验
25
                 .antMatchers("/actuator/**").permitAll()//不对springboot-admin监控的请求进行权限校验
26
                 .antMatchers("/instances/**").permitAll()//不对springboot-admin监控的实例信息请求进行权限校验
26
                 .antMatchers("/instances/**").permitAll()//不对springboot-admin监控的实例信息请求进行权限校验
27
-                .antMatchers("/oauth/**").permitAll()
28
-                .anyRequest().authenticated().and().logout().disable();
27
+                .antMatchers("/oauth/**").permitAll();
29
     }
28
     }
30
 
29
 
31
     /**
30
     /**