Skip to content

Commit

Permalink
Merge pull request #12 from chenggangpro/hotfix/fix#10
Browse files Browse the repository at this point in the history
update fix #10
  • Loading branch information
chenggangpro authored May 22, 2019
2 parents 22e7b79 + 72648d7 commit 58295bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Spring Cloud Gateway Extra Plugin

[![Build Status](https://travis-ci.com/chenggangpro/spring-cloud-gateway-plugin.svg?branch=master)](https://travis-ci.com/chenggangpro/spring-cloud-gateway-plugin)

## Current Version: 1.3.1.RELEASE
## Current Version: 1.3.2.RELEASE

### This Plugin Support Below Features:

Expand All @@ -19,7 +19,7 @@ Spring Cloud Gateway Extra Plugin

##### Note:

* This Dependency Base On SpringBoot[`2.1.5.RELEASE`] And Spring Cloud Gateway[`Greenwich.SR1`],Suggest To Update To This SpringCloud Version,Official Resolve Some Issues , Fix Some Bugs.
* This Dependency Base Spring Cloud Gateway[`Greenwich.SR1`],Suggest To Update To This SpringCloud Version,Official Resolve Some Issues , Fix Some Bugs.
* This Dependency Is Now In Maven Central.
* The Feature To Read Request And Response Json Data Will Loss A Lot Of Performance,It Will Reduce The Gateway Traffic.

Expand All @@ -31,7 +31,7 @@ Spring Cloud Gateway Extra Plugin
|1.1.0.RELEASE|As V1.0.0.RELEASE,Change Read Form Data Method|
|1.2.0.RELEASE|Simplify `@EnableGatewayPlugin`,Use Yaml Settings To Enable Plugin Functions|
|1.3.0.RELEASE|Add Temporary Offline Endpoint ,Fix Grey Route Not Working Bug|
|1.3.1.RELEASE|Fix `Issue#10`,Enable GatewayContextFilter By Default|
|1.3.2.RELEASE|Fix `Issue#10`,Enable GatewayContextFilter By Default|

##### Step

Expand Down Expand Up @@ -69,7 +69,7 @@ Spring Cloud Gateway Extra Plugin
<dependency>
<groupId>pro.chenggang</groupId>
<artifactId>spring-cloud-gateway-plugin</artifactId>
<version>1.3.1.RELEASE</version>
<version>1.3.2.RELEASE</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>pro.chenggang</groupId>
<artifactId>spring-cloud-gateway-plugin</artifactId>
<version>1.3.1.RELEASE</version>
<version>1.3.2.RELEASE</version>
<packaging>jar</packaging>

<name>spring-cloud-gateway-plugin</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import pro.chenggang.plugin.springcloud.gateway.filter.GatewayContextFilter;
import pro.chenggang.plugin.springcloud.gateway.properties.GatewayPluginProperties;
import pro.chenggang.plugin.springcloud.gateway.properties.GreyProperties;

/**
* Gateway Plugin Config
Expand All @@ -28,7 +26,6 @@ public GatewayPluginProperties gatewayPluginProperties(){
@Bean
@ConditionalOnBean(GatewayPluginProperties.class)
@ConditionalOnMissingBean(GatewayContextFilter.class)
@ConditionalOnProperty(prefix = GreyProperties.GREY_PROPERTIES_PREFIX,value = "enable",havingValue = "true")
public GatewayContextFilter gatewayContextFilter(GatewayPluginProperties gatewayPluginProperties){
GatewayContextFilter gatewayContextFilter = new GatewayContextFilter(gatewayPluginProperties);
log.debug("Load GatewayContextFilter Config Bean");
Expand Down

0 comments on commit 58295bf

Please sign in to comment.