|
|
@@ -1,55 +1,65 @@
|
|
|
package com.uas.credit.config;
|
|
|
|
|
|
-import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
/**
|
|
|
* 鹏元配置信息
|
|
|
*/
|
|
|
@Component
|
|
|
-@ConfigurationProperties(prefix = "pyconfig")
|
|
|
public class PyConfig {
|
|
|
/**
|
|
|
* 鹏元征信 api 域名
|
|
|
*/
|
|
|
+ @Value("${pyconfig.host}")
|
|
|
private String host;
|
|
|
|
|
|
/**
|
|
|
* 返回报文压缩的URL
|
|
|
*/
|
|
|
+ @Value("${pyconfig.pathZip}")
|
|
|
private String pathZip;
|
|
|
|
|
|
/**
|
|
|
* 返回报文不压缩的URL
|
|
|
*/
|
|
|
+ @Value("${pyconfig.pathUnZip}")
|
|
|
private String pathUnZip;
|
|
|
|
|
|
/**
|
|
|
* 认证信息,用户id
|
|
|
*/
|
|
|
+ @Value("${pyconfig.userId}")
|
|
|
private String userId;
|
|
|
|
|
|
/**
|
|
|
* 认证信息,密码
|
|
|
*/
|
|
|
+ @Value("${pyconfig.password}")
|
|
|
private String password;
|
|
|
|
|
|
/**
|
|
|
* 是否测试模式
|
|
|
*/
|
|
|
+ @Value("${pyconfig.test}")
|
|
|
private boolean test;
|
|
|
|
|
|
/**
|
|
|
* 请求内容样本文件
|
|
|
*/
|
|
|
+ @Value("${pyconfig.queryFile}")
|
|
|
private String queryFile;
|
|
|
|
|
|
+ @Value("${pyconfig.keyStoreFile}")
|
|
|
private String keyStoreFile;
|
|
|
|
|
|
+ @Value("${pyconfig.keyStorePassword}")
|
|
|
private String keyStorePassword;
|
|
|
|
|
|
+ @Value("${pyconfig.trustStoreFile}")
|
|
|
private String trustStoreFile;
|
|
|
|
|
|
+ @Value("${pyconfig.trustStorePassword}")
|
|
|
private String trustStorePassword;
|
|
|
|
|
|
public String getHost() {
|