my-csc-config-file.git 5 jaren geleden
bovenliggende
commit
88de473bd7
1 gewijzigde bestanden met toevoegingen van 1 en 2 verwijderingen
  1. 1 2
      src/main/java/com/unissoft/config/WebSecurityConfig.java

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

@@ -24,8 +24,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
24 24
         http.authorizeRequests()
25 25
                 .antMatchers("/actuator/**").permitAll()//不对springboot-admin监控的请求进行权限校验
26 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
     /**