From 8530867653b96b54d687e57b2172ffe9e3e7b074 Mon Sep 17 00:00:00 2001 From: tanghc Date: Fri, 10 Jan 2020 20:20:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E5=85=B3=E4=BA=8C=E5=90=88=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sop/gateway/config/GatewayConfig.java | 37 ---------------- .../gitee/sop/gateway/config/ZuulConfig.java | 43 ------------------- 2 files changed, 80 deletions(-) delete mode 100644 sop-gateway/src/main/java/com/gitee/sop/gateway/config/GatewayConfig.java delete mode 100644 sop-gateway/src/main/java/com/gitee/sop/gateway/config/ZuulConfig.java diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/config/GatewayConfig.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/config/GatewayConfig.java deleted file mode 100644 index 56d66b9d..00000000 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/config/GatewayConfig.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.gitee.sop.gateway.config; - -import com.gitee.sop.gatewaycommon.gateway.configuration.AlipayGatewayConfiguration; -import org.springframework.context.annotation.Configuration; - - -/** - * 使用Spring Cloud Gateway - * - * 注意:下面两个只能使用一个。 - * - * 使用前,前往启动类SopGatewayApplication.java 注释掉@EnableZuulProxy - */ - -/** - * 开通支付宝开放平台能力 - * @author tanghc - */ - -//@Configuration -public class GatewayConfig extends AlipayGatewayConfiguration { - -} - -/** - * 开通淘宝开放平能力 - */ -//@Configuration -//public class GatewayConfig extends TaobaoGatewayConfiguration { -// -// { -// Map appSecretStore = new HashMap(); -// appSecretStore.put("taobao_test", "G9w0BAQEFAAOCAQ8AMIIBCgKCA"); -// ApiContext.getApiConfig().addAppSecret(appSecretStore); -// } -//} - diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/config/ZuulConfig.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/config/ZuulConfig.java deleted file mode 100644 index a4e04211..00000000 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/config/ZuulConfig.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.gitee.sop.gateway.config; - -/** - * 使用Spring Cloud Zuul,推荐使用 - * - * 注意:下面两个只能使用一个 - */ - -import com.gitee.sop.gatewaycommon.zuul.configuration.AlipayZuulConfiguration; -import org.springframework.context.annotation.Configuration; - -/** - * 开通支付宝开放平台能力 - * @author tanghc - */ -//@Configuration -public class ZuulConfig extends AlipayZuulConfiguration { - -} - -/** - * 开通淘宝开放平台能力 - * @author tanghc - */ -//@Configuration -//public class ZuulConfig extends TaobaoZuulConfiguration { -// static { -// new ManagerInitializer(); -// } -//} - -/** - * 对接easyopen - */ -//@Configuration -//public class ZuulConfig extends EasyopenZuulConfiguration { -// static { -// Map appSecretMap = new HashMap<>(); -// appSecretMap.put("easyopen_test", "G9w0BAQEFAAOCAQ8AMIIBCgKCA"); -// ApiConfig.getInstance().addAppSecret(appSecretMap); -// } -// -//}