Browse Source

配置文件优化

gjs 4 years ago
parent
commit
6a0a9b48cb

+ 3 - 0
src/main/resources/application-dev.yml

@@ -10,6 +10,9 @@ spring:
     password: # Redis服务器连接密码(默认为空)
     timeout: 3000ms # 连接超时时间(毫秒)
 
+system:
+  charset: gbk
+
 logging:
   level:
     root: info

+ 3 - 0
src/main/resources/application-prod.yml

@@ -10,6 +10,9 @@ spring:
     password: # Redis服务器连接密码(默认为空)
     timeout: 3000ms # 连接超时时间(毫秒)
 
+system:
+  charset: UTF-8
+
 logging:
   file:
     path: /var/logs

+ 0 - 2
src/main/resources/application.yml

@@ -68,8 +68,6 @@ thread:
     keepAliveSeconds: 5
     queueCapacity: 512
 
-system:
-  charset: gbk
 
 weather:
   REQUEST_URL: https://devapi.qweather.com/v7/weather/now