浏览代码

配置参数

vincent 3 年之前
父节点
当前提交
e76121bb72
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      server/src/main/resources/application.yml

+ 3 - 3
server/src/main/resources/application.yml

@@ -70,8 +70,8 @@ spring:
     isEnable: true
 
       ## standalone config
-    host: 127.0.0.1
-    port: 6379
+    host: ${REDIS_HOST:127.0.0.1}
+    port: ${REDIS_PORT:6379}
 
       ## cluster config
       #  cluster:
@@ -248,7 +248,7 @@ encryption:
 
 
 logging:
-  config: config/logback.xml
+  config: classpath:config/logback.xml
 
 ## nacos 配置
 nacos: