From a41e5404015838a4eca0481a7c4ff2bb9c97105e Mon Sep 17 00:00:00 2001 From: HuangXin Date: Thu, 23 Jul 2020 15:09:39 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E6=9B=B4=E6=96=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/application-local.properties | 15 ++++++++++----- config/application.properties | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/config/application-local.properties b/config/application-local.properties index 5d1269fb..59529ca0 100644 --- a/config/application-local.properties +++ b/config/application-local.properties @@ -4,11 +4,11 @@ server.tomcat.basedir=./basedir # 多个项目放在nginx下同个端口,通过该配置区分 server.servlet.context-path=/dispose # 配置数据源 -spring.datasource.url=jdbc:mysql://172.28.72.118:33061/dispose_v2?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\ +spring.datasource.url=jdbc:mysql://cloud.xajhuang.com:3306/dispose?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\ =convertToNull&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.datasource.username=phoenix -spring.datasource.password=Hy@rfph32 +spring.datasource.username=xajhuang +spring.datasource.password=eHkGjtTnkFSDHHA7 # 配置连接池 spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource spring.datasource.dbcp2.max-total=128 @@ -53,11 +53,16 @@ phoenix.response-enc-switch=false phoenix.aes-key=Wt4EJu6Rrq5udd/42bNpCQ== #====custom config,begin with phoenix==== #调试配置 +dispose.debug-model=true dispose.check-protocol-timeout=false -dispose.check-request-token=false -dispose.check-admin-permission=false +dispose.check-request-token=true +dispose.split_char=, # 迪普设备配置 # 发送超时时间(ms) #dptech.soap-conn-timeout=5000 # 接收超时时间(ms) dptech.soap-recv-timeout=50000 + +# 用户权限配置 +permission.admin-check=true +permission.admin-users=admin,xajhuang diff --git a/config/application.properties b/config/application.properties index b2d2a5a5..07f154c2 100644 --- a/config/application.properties +++ b/config/application.properties @@ -1 +1 @@ -spring.profiles.active=test \ No newline at end of file +spring.profiles.active=local \ No newline at end of file