Commit 8a3d24f1 authored by 赵啸非's avatar 赵啸非

修改升级政务服务版本

parent 86906620
...@@ -4,9 +4,9 @@ import org.springframework.context.annotation.Bean; ...@@ -4,9 +4,9 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered; import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order; import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity; //import org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity;
import org.springframework.security.config.web.server.ServerHttpSecurity; //import org.springframework.security.config.web.server.ServerHttpSecurity;
import org.springframework.security.web.server.SecurityWebFilterChain; //import org.springframework.security.web.server.SecurityWebFilterChain;
/** /**
* 网关限流配置 * 网关限流配置
...@@ -15,7 +15,7 @@ import org.springframework.security.web.server.SecurityWebFilterChain; ...@@ -15,7 +15,7 @@ import org.springframework.security.web.server.SecurityWebFilterChain;
* @date: 2022/6/20 13:52 * @date: 2022/6/20 13:52
*/ */
@Configuration @Configuration
@EnableWebFluxSecurity //@EnableWebFluxSecurity
public class GatewayConfig { public class GatewayConfig {
// @Bean // @Bean
// @Order(Ordered.HIGHEST_PRECEDENCE) // @Order(Ordered.HIGHEST_PRECEDENCE)
...@@ -23,12 +23,12 @@ public class GatewayConfig { ...@@ -23,12 +23,12 @@ public class GatewayConfig {
// return new SentinelFallbackHandler(); // return new SentinelFallbackHandler();
// } // }
@Bean // @Bean
public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) { // public SecurityWebFilterChain springSecurityFilterChain(ServerHttpSecurity http) {
//配置白名单和访问规则,CommonEnum枚举类 // //配置白名单和访问规则,CommonEnum枚举类
http.csrf().disable(); // http.csrf().disable();
return http.build(); // return http.build();
} // }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment