欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ClientConfig

程序员文章站 2022-07-10 17:57:00
...
package com.pingan.ff.btoam.demo.service;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ClientConfig {

@Value("${client.connectTimeout}")
private String connectTimeout;
@Value("${client.readTimeout}")
private String readTimeout = "60000";
@Value("${client.privateKey}")
private String privateKey;
@Value("${server.aesKey}")
private String aesKey;
@Value("${server.url}")
private String gateWayUrl;
@Value("${server.publicKey}")
private String publicKey;

public String getConnectTimeout() {
if(StringUtils.isEmpty(connectTimeout)){
return "60000";
}
return connectTimeout;
}

public String getReadTimeout() {
if(StringUtils.isEmpty(readTimeout)){
return "60000";
}
return readTimeout;
}

public String getAesKey() {
return aesKey;
}

public String getGateWayUrl() {
return gateWayUrl;
}

public String getPublicKey() {
return publicKey;
}

public String getPrivateKey() {
return privateKey;
}

public void setConnectTimeout(String connectTimeout) {
this.connectTimeout = connectTimeout;
}

public void setReadTimeout(String readTimeout) {
this.readTimeout = readTimeout;
}

public void setPrivateKey(String privateKey) {
this.privateKey = privateKey;
}

public void setAesKey(String aesKey) {
this.aesKey = aesKey;
}

public void setGateWayUrl(String gateWayUrl) {
this.gateWayUrl = gateWayUrl;
}

public void setPublicKey(String publicKey) {
this.publicKey = publicKey;
}

}

上一篇: ext的ajax提交

下一篇: git命令使用