From a765c3e8f08d5271c7de1ea6da5e97cff93628e2 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Thu, 17 Aug 2023 18:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=B9=E9=85=8D=E7=BA=BF=E4=B8=8A=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/db.properties | 21 ++++++++++++++------- conf/szwh.properties | 7 ++++--- src/test/java/cn/chjyj/szwh/UtilsTest.java | 2 +- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/conf/db.properties b/conf/db.properties index f382480..66c0c70 100644 --- a/conf/db.properties +++ b/conf/db.properties @@ -1,12 +1,19 @@ # 数据库服务器配置 type=com.alibaba.druid.pool.DruidDataSource druid.driver-class=com.mysql.cj.jdbc.Driver -druid.url=jdbc:mysql://10.14.1.197:3306/jiao_api_alpha_x?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 -druid.username=jiao_api_alpha_x -druid.password=YcpfGJyJpy6KfYR3 -#druid.url=jdbc:mysql://localhost:3306/szwhtrans?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 -#druid.username=root -#druid.password=xc1123 +#druid.url=jdbc:mysql://10.14.1.197:3306/jiao_api_alpha_x?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 +#druid.username=jiao_api_alpha_x +#druid.password=YcpfGJyJpy6KfYR3 + +# local +druid.url=jdbc:mysql://localhost:3306/szwhtrans?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 +druid.username=root +druid.password=root + +# 正式环境服务器配置 +#druid.url=jdbc:mysql://10.24.4.162:33068/jiao_api_alpha_x?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8 +#druid.username=jiao_api_alpha_x +#druid.password=YcpfGJyJpy6KfYR3 druid.initial-size=10 druid.max-active=100 @@ -18,4 +25,4 @@ druid.max-pool-prepared-statement-per-connection-size=20 #druid.min-evictable-idle-time-millis=30000 # 查看统计状态 druid.stat-view-servlet.enabled=true -druid.stat-view-servlet.url-pattern=/druid/* \ No newline at end of file +druid.stat-view-servlet.url-pattern=/druid/* diff --git a/conf/szwh.properties b/conf/szwh.properties index cde62e2..48e41e1 100644 --- a/conf/szwh.properties +++ b/conf/szwh.properties @@ -27,10 +27,11 @@ ENTRUST_URL = http://10.14.1.173:9528 TIANLANG_ENTRUST_URL = http://10.14.1.248:11030 #TIANLANG_ENTRUST_URL = http://58.30.231.137:11030 -# 用户地址 -#REAL_URL =http://10.24.4.14:51317 +# 用户地址 生成环境 +REAL_URL =http://10.24.4.14:51317 +# 测试环境 #REAL_URL = http://10.14.1.248:11030 -REAL_URL = http://58.30.231.137:51317 +#REAL_URL = http://58.30.231.137:51317 # 主机 HOST =http://10.24.4.156 # 中间件http://10.14.1.190:51317 diff --git a/src/test/java/cn/chjyj/szwh/UtilsTest.java b/src/test/java/cn/chjyj/szwh/UtilsTest.java index f05ab36..9b3cb0d 100644 --- a/src/test/java/cn/chjyj/szwh/UtilsTest.java +++ b/src/test/java/cn/chjyj/szwh/UtilsTest.java @@ -46,7 +46,7 @@ public class UtilsTest { */ @Test public void mkJwt(){ - String rout = SignUtils.createSign("user_real"); + String rout = SignUtils.createSign("entrust"); System.out.println(rout); }