|
@@ -1,6 +1,7 @@
|
|
|
|
+debug=true
|
|
spring.main.lazy-initialization=false
|
|
spring.main.lazy-initialization=false
|
|
spring.main.allow-bean-definition-overriding=true
|
|
spring.main.allow-bean-definition-overriding=true
|
|
-temp.basedir=/usr/local/service/file
|
|
|
|
|
|
+temp.basedir=C:/Users/pc/Desktop
|
|
# application
|
|
# application
|
|
server.port=8010
|
|
server.port=8010
|
|
# mybatis-plus
|
|
# mybatis-plus
|
|
@@ -19,7 +20,7 @@ spring.datasource.dynamic.primary=fiveep
|
|
spring.datasource.dynamic.datasource.fiveep.url=jdbc:mysql://124.71.145.219:3306/smart_electricity?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&characterEncoding=UTF-8
|
|
spring.datasource.dynamic.datasource.fiveep.url=jdbc:mysql://124.71.145.219:3306/smart_electricity?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&characterEncoding=UTF-8
|
|
spring.datasource.dynamic.datasource.fiveep.username=root
|
|
spring.datasource.dynamic.datasource.fiveep.username=root
|
|
spring.datasource.dynamic.datasource.fiveep.password=Wjzn2021Db
|
|
spring.datasource.dynamic.datasource.fiveep.password=Wjzn2021Db
|
|
-spring.datasource.dynamic.druid.initial-size=5
|
|
|
|
|
|
+spring.datasource.dynamic.druid.initial-size=5
|
|
spring.datasource.dynamic.druid.min-idle=5
|
|
spring.datasource.dynamic.druid.min-idle=5
|
|
spring.datasource.dynamic.druid.max-active=30
|
|
spring.datasource.dynamic.druid.max-active=30
|
|
spring.datasource.dynamic.druid.max-wait=60000
|
|
spring.datasource.dynamic.druid.max-wait=60000
|
|
@@ -61,3 +62,44 @@ spring.jackson.parser.allow-single-quotes=true
|
|
# gzip
|
|
# gzip
|
|
server.compression.enabled=true
|
|
server.compression.enabled=true
|
|
server.compression.mime-types=application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
|
|
server.compression.mime-types=application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+#https://blog.csdn.net/haohaifeng002/article/details/102887921
|
|
|
|
+spring.elasticsearch.rest.uris=http://124.71.174.104:9200
|
|
|
|
+spring.elasticsearch.rest.username=
|
|
|
|
+spring.elasticsearch.rest.password=
|
|
|
|
+
|
|
|
|
+# ehcache
|
|
|
|
+spring.cache.ehcache.enabled=true
|
|
|
|
+spring.cache.ehcache.config=classpath:ehcache.xml
|
|
|
|
+# redis
|
|
|
|
+spring.cache.redis.enabled=true
|
|
|
|
+spring.redis.database=0
|
|
|
|
+spring.redis.host=124.71.174.104
|
|
|
|
+spring.redis.port=6379
|
|
|
|
+spring.redis.password=123456
|
|
|
|
+spring.redis.timeout=10000
|
|
|
|
+spring.redis.jedis.pool.max-active=1000
|
|
|
|
+spring.redis.jedis.pool.max-idle=300
|
|
|
|
+spring.redis.jedis.pool.min-idle=5
|
|
|
|
+spring.redis.jedis.pool.max-wait=1000
|
|
|
|
+
|
|
|
|
+# token
|
|
|
|
+token.header: accessToken
|
|
|
|
+token.secret: abcdefghijklmnopqrstuvwxyz
|
|
|
|
+token.expireTime: 144
|
|
|
|
+
|
|
|
|
+# xss
|
|
|
|
+xss.enabled: true
|
|
|
|
+xss.excludes: /system/notice
|
|
|
|
+xss.urlPatterns: /system/*,/monitor/*,/tool/*
|
|
|
|
+
|
|
|
|
+# project
|
|
|
|
+wj.name: yq
|
|
|
|
+wj.version: 3.6.0
|
|
|
|
+wj.copyrightYear: 2021
|
|
|
|
+wj.demoEnabled: true
|
|
|
|
+wj.addressEnabled: false
|
|
|
|
+wj.captchaType: math
|
|
|
|
+
|
|
|
|
+spring.messages.basename= i18n/messages
|