Skip to content

Commit

Permalink
依赖修改
Browse files Browse the repository at this point in the history
  • Loading branch information
eduosi committed Oct 10, 2019
1 parent 906c3ce commit 11f42c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 5 additions & 0 deletions buession-springcloud-gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
<artifactId>spring-cloud-starter-netflix-archaius</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain){
ServerHttpRequest.Builder serverHttpRequestBuilder = exchange.getRequest().mutate();
String requestContextName = getRequestContextName();

if(requestContextName != null && requestContextName != ""){
if(requestContextName != null && "".equals(requestContextName) == false){
serverHttpRequestBuilder.header("X-Request-Context", requestContextName);
}

Expand Down
7 changes: 0 additions & 7 deletions buession-springcloud-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,6 @@
<artifactId>reactor-core</artifactId>
<version>3.2.9.RELEASE</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down

0 comments on commit 11f42c3

Please sign in to comment.