From 72648d7ba98d4cd091af6feb277a750b1b5d61c6 Mon Sep 17 00:00:00 2001 From: Cheng Gang Date: Wed, 22 May 2019 12:17:50 +0800 Subject: [PATCH] update fix #10 --- README.md | 8 ++++---- pom.xml | 2 +- .../springcloud/gateway/config/GatewayPluginConfig.java | 3 --- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 77e2947..36b8bef 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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. @@ -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 @@ -69,7 +69,7 @@ Spring Cloud Gateway Extra Plugin pro.chenggang spring-cloud-gateway-plugin - 1.3.1.RELEASE + 1.3.2.RELEASE ``` diff --git a/pom.xml b/pom.xml index f0e6575..85acaa8 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ pro.chenggang spring-cloud-gateway-plugin - 1.3.1.RELEASE + 1.3.2.RELEASE jar spring-cloud-gateway-plugin diff --git a/src/main/java/pro/chenggang/plugin/springcloud/gateway/config/GatewayPluginConfig.java b/src/main/java/pro/chenggang/plugin/springcloud/gateway/config/GatewayPluginConfig.java index f47b793..88bea2e 100644 --- a/src/main/java/pro/chenggang/plugin/springcloud/gateway/config/GatewayPluginConfig.java +++ b/src/main/java/pro/chenggang/plugin/springcloud/gateway/config/GatewayPluginConfig.java @@ -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 @@ -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");