|
@@ -1,56 +1,59 @@
|
|
|
-server.port=8091
|
|
|
-#10.0.0.159
|
|
|
-server.servlet.context-path=/rmcp
|
|
|
+server.port=8099
|
|
|
+server.servlet.context-path=/api
|
|
|
+
|
|
|
+project.path=./log
|
|
|
|
|
|
-project.path=/opt/sit/rmcp
|
|
|
#日志配置
|
|
|
logging.level.root=info
|
|
|
logging.path=${project.path}/logs
|
|
|
|
|
|
spring.thymeleaf.prefix=classpath:/templates/
|
|
|
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
|
|
|
-#使用druid数据源
|
|
|
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
|
|
-spring.datasource.url=jdbc:mysql://10.0.0.161:3306/rmcp?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&autoReconnect=true&failOverReadOnly=false
|
|
|
-#spring.datasource.url=jdbc:mysql://114.135.61.188:23305/smart_city?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull
|
|
|
+spring.datasource.url=jdbc:mysql://114.135.61.188:33306/ccrc?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull
|
|
|
spring.datasource.username=root
|
|
|
spring.datasource.password=100Zone@123
|
|
|
spring.datasource.druid.initial-size=5
|
|
|
spring.datasource.druid.min-idle=5
|
|
|
-spring.datasource.druid.max-active=100
|
|
|
+spring.datasource.druid.max-active=20
|
|
|
spring.datasource.druid.max-wait=60000
|
|
|
spring.datasource.druid.time-between-eviction-runs-millis=60000
|
|
|
spring.datasource.druid.min-evictable-idle-time-millis=300000
|
|
|
spring.datasource.druid.validation-query=SELECT 1
|
|
|
spring.datasource.druid.test-while-idle=true
|
|
|
spring.datasource.druid.test-on-borrow=true
|
|
|
-spring.datasource.druid.test-on-return=true
|
|
|
+spring.datasource.druid.test-on-return=false
|
|
|
spring.datasource.druid.pool-prepared-statements=true
|
|
|
spring.datasource.druid.max-pool-prepared-statement-per-connection-size=20
|
|
|
spring.datasource.druid.filters=stat,wall
|
|
|
spring.datasource.druid.connection-properties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
|
|
|
|
|
# mybatis_config
|
|
|
-mybatis.mapper-locations=classpath*:mapper/*.xml,classpath*:mapper/pay/*.xml
|
|
|
-mybatis.type-aliases-package=com.bz.smart_city.entity
|
|
|
+mybatis.mapper-locations=classpath*:mapper/*.xml
|
|
|
+mybatis.type-aliases-package=com.zoniot.ccrc.entity
|
|
|
mybatis.configuration.map-underscore-to-camel-case=true
|
|
|
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
mybatis.configuration.use-column-label=true
|
|
|
-
|
|
|
+spring.data.mongodb.uri=mongodb://114.135.61.188:17017/meter-reading-database
|
|
|
spring.jackson.time-zone=GMT+8
|
|
|
#spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
|
|
|
#spring.jackson.joda-date-time-format: yyyy-MM-dd HH:mm:ss
|
|
|
|
|
|
# redis
|
|
|
-spring.redis.host=10.0.0.161
|
|
|
-spring.redis.port=6379
|
|
|
+#spring.redis.host=127.0.0.1
|
|
|
+spring.redis.host=114.135.61.188
|
|
|
+spring.redis.port=26379
|
|
|
spring.redis.password=zoniot
|
|
|
+#spring.redis.port=6379
|
|
|
+#spring.redis.password=100Zone@123
|
|
|
spring.redis.database=3
|
|
|
+
|
|
|
spring.redis.timeout=10000ms
|
|
|
spring.redis.jedis.pool.max-active=8
|
|
|
spring.redis.jedis.pool.max-idle=8
|
|
|
spring.redis.jedis.pool.max-wait=-1ms
|
|
|
spring.redis.jedis.pool.min-idle=2
|
|
|
+
|
|
|
|
|
|
|
|
|
jwt.secret=smartCity123
|
|
@@ -58,9 +61,10 @@ jwt.expiration=36000
|
|
|
jwt.header=Authorization
|
|
|
jwt.tokenHead=Bearer
|
|
|
|
|
|
+
|
|
|
spring.servlet.multipart.max-file-size=100MB
|
|
|
spring.servlet.multipart.max-request-size=100MB
|
|
|
-spring.servlet.multipart.location=${project.path}/data
|
|
|
+spring.servlet.multipart.location=${project.path}/files
|
|
|
files.path=${project.path}/data
|
|
|
|
|
|
#物联网url
|
|
@@ -96,3 +100,6 @@ wechat.oa.appid=wx6b2ce547cd593413
|
|
|
#小程序水查查服务
|
|
|
wechat.mp.appid=wx27f831675081e293
|
|
|
wechat.mp.app-secret=a01d7f75f15e1a6b7fa28a317f97ef1b
|
|
|
+
|
|
|
+
|
|
|
+
|