mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
网关二合一
This commit is contained in:
@@ -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<String, String> appSecretStore = new HashMap();
|
|
||||||
// appSecretStore.put("taobao_test", "G9w0BAQEFAAOCAQ8AMIIBCgKCA");
|
|
||||||
// ApiContext.getApiConfig().addAppSecret(appSecretStore);
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
@@ -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<String, String> appSecretMap = new HashMap<>();
|
|
||||||
// appSecretMap.put("easyopen_test", "G9w0BAQEFAAOCAQ8AMIIBCgKCA");
|
|
||||||
// ApiConfig.getInstance().addAppSecret(appSecretMap);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//}
|
|
Reference in New Issue
Block a user