@Value注解配置修改

2024年8月26日10:10:06
This commit is contained in:
xiang2lin 2024-08-26 10:10:36 +08:00
parent bc37dab6d0
commit f5b69825dc
5 changed files with 10 additions and 10 deletions

View File

@ -66,9 +66,9 @@ public class CbsPluginServiceImpl implements ICbsPluginService {
@Autowired
private RestUtil restUtil;
@Value("${cbs8.elec_path}")
@Value("${cbs8.elec_path:}")
private String elec_path;
@Value("${OA.data_source_code}")
@Value("${OA.data_source_code:}")
private String oa_data_source_code;
/**
* 支付申请

View File

@ -87,21 +87,21 @@ public class CBSUtil {
/**
* 财资管理云公钥(平台公钥)
*/
@Value("${cbs8.cbs_public_key}")
@Value("${cbs8.cbs_public_key:}")
public void setBodyEncryptionKey(String bodyEncryptionKey) {
CBSUtil.bodyEncryptionKey = bodyEncryptionKey;
}
/**
* 企业私钥解密
*/
@Value("${cbs8.ya_private_key}")
@Value("${cbs8.ya_private_key:}")
public void setSignEncryptionPrivateKey(String signEncryptionPrivateKey) {
CBSUtil.signEncryptionPrivateKey = signEncryptionPrivateKey;
}
/**
* 企业私钥解密
*/
@Value("${cbs8.ya_private_key}")
@Value("${cbs8.ya_private_key:}")
public void setBodyDecryptionKey(String bodyDecryptionKey) {
CBSUtil.bodyDecryptionKey = bodyDecryptionKey;
}

View File

@ -24,11 +24,11 @@ import java.util.Map;
public class CbsAccessToken {
private static final Logger logger = LoggerFactory.getLogger(CbsAccessToken.class);
@Value("${cbs8.appId}")
@Value("${cbs8.appId:}")
private String app_id;
@Value("${cbs8.appSecret}")
@Value("${cbs8.appSecret:}")
private String app_secret;
@Value("${cbs8.url}")
@Value("${cbs8.url:}")
private String app_url;
private static String appId;

View File

@ -49,7 +49,7 @@ public class OerDjmlExtServiceImpl implements IOerDjmlExtService {
Logger logger = LoggerFactory.getLogger(getClass());
@Autowired
private RestUtil restUtil;
@Value("${savefile.path}")
@Value("${savefile.path:}")
public String DSK;
@Autowired
private ISysApplicationDatabaseService sysApplicationDatabaseService;

View File

@ -39,7 +39,7 @@ public class CbsLogServiceImpl extends BaseService<CbsLogEntity,String> implemen
Logger log = LoggerFactory.getLogger(getClass());
private ICbsLogDao cbsLogDao;
@Value("${OA.data_source_code}")
@Value("${OA.data_source_code:}")
private String oa_data_source_code;
@Autowired
public void setCbsLogDao(ICbsLogDao cbsLogDao) {