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