后台首次运行时报错问题处理
This commit is contained in:
parent
186dbe5ec0
commit
ef454c4089
|
@ -40,7 +40,7 @@
|
|||
<gson.version>2.8.5</gson.version>
|
||||
<fastjson.version>1.2.83</fastjson.version>
|
||||
<hutool.version>5.8.16</hutool.version>
|
||||
<lombok.version>1.18.4</lombok.version>
|
||||
<lombok.version>1.18.22</lombok.version>
|
||||
|
||||
<!--wagon plugin 配置-->
|
||||
<!--<service-path>/work/sz</service-path>
|
||||
|
|
|
@ -10,7 +10,6 @@ import com.sqx.modules.material.entity.MaterialMassage;
|
|||
import com.sqx.modules.material.service.MaterialArtificerService;
|
||||
import com.sqx.modules.material.service.MaterialMassageService;
|
||||
import com.sqx.modules.material.service.MaterialService;
|
||||
import com.sun.org.apache.regexp.internal.RE;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
|
|
@ -6,7 +6,6 @@ import com.sqx.modules.common.service.CommonInfoService;
|
|||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import sun.misc.BASE64Encoder;
|
||||
|
||||
import javax.crypto.Mac;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
|
@ -155,7 +154,7 @@ public class VerifyIdCardUtils {
|
|||
Key sKey = new SecretKeySpec(secretKey.getBytes("UTF-8"), mac.getAlgorithm());
|
||||
mac.init(sKey);
|
||||
byte[] hash = mac.doFinal(signStr.getBytes("UTF-8"));
|
||||
String sig = new BASE64Encoder().encode(hash);
|
||||
String sig = Base64.getEncoder().encodeToString(hash);
|
||||
|
||||
String auth = "hmac id=\"" + secretId + "\", algorithm=\"hmac-sha1\", headers=\"x-date x-source\", signature=\"" + sig + "\"";
|
||||
return auth;
|
||||
|
|
|
@ -3,9 +3,9 @@ spring:
|
|||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://127.0.0.1:3306/anmoceshi?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
||||
url: jdbc:mysql://123.60.46.33:3306/anmo?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
||||
username: root
|
||||
password: 123456
|
||||
password: root
|
||||
initial-size: 10
|
||||
max-active: 100
|
||||
min-idle: 10
|
||||
|
|
Loading…
Reference in New Issue