Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
8a3d24f1
Commit
8a3d24f1
authored
Jul 21, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改升级政务服务版本
parent
86906620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
smart-gateway/src/main/java/com/mortals/xhx/base/framework/config/GatewayConfig.java
.../com/mortals/xhx/base/framework/config/GatewayConfig.java
+10
-10
No files found.
smart-gateway/src/main/java/com/mortals/xhx/base/framework/config/GatewayConfig.java
View file @
8a3d24f1
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment