You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
40 lines
1.2 KiB
package com.qs.serve.modules.base;
|
|
|
|
import cn.hutool.crypto.digest.DigestUtil;
|
|
import com.qs.serve.common.config.properties.QiShengDsProperties;
|
|
import com.qs.serve.common.util.HttpUtil;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import javax.annotation.PostConstruct;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.net.URLEncoder;
|
|
|
|
/**
|
|
* @author YenHex
|
|
* @since 2024/1/26
|
|
*/
|
|
@Slf4j
|
|
@Service
|
|
public class ErpDataBaseService {
|
|
|
|
@Autowired
|
|
private QiShengDsProperties qiShengDsProperties;
|
|
|
|
public static String erpJslGroupDbConnectionUrl;
|
|
|
|
public static String getErpJslGroupDbConnectionUrl(){
|
|
return erpJslGroupDbConnectionUrl;
|
|
}
|
|
|
|
@PostConstruct
|
|
public void initErpJslGroupDbConnectionUrl() {
|
|
log.warn("数据库加载... ErpJslGroupDbConnectionUrl:{}",erpJslGroupDbConnectionUrl);
|
|
erpJslGroupDbConnectionUrl = qiShengDsProperties.getUrl()
|
|
+ ";user=" + qiShengDsProperties.getUsername()
|
|
+ ";password=" + qiShengDsProperties.getPassword();
|
|
}
|
|
|
|
}
|
|
|