Browse Source

匹配线上规则

master
453530270@qq.com 2 years ago
parent
commit
a765c3e8f0
  1. 21
      conf/db.properties
  2. 7
      conf/szwh.properties
  3. 2
      src/test/java/cn/chjyj/szwh/UtilsTest.java

21
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/*
druid.stat-view-servlet.url-pattern=/druid/*

7
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

2
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);
}

Loading…
Cancel
Save