Browse Source

update 配置文件

GITZYY 6 months ago
parent
commit
6b39e2c253

+ 1 - 1
start/docker-compose-dev.yml

@@ -12,6 +12,6 @@ services:
     networks:
     - nginx-proxy
     volumes:
-    - /melonmobile/log/loan-eg-server:/melonmobile/log/loan-eg-server
+    - /melonmobile/log/loan-eg-server:./start/log/
     - /melonmobile/agreement:/agreement
     - /usr/share/fonts/chinese:/usr/share/fonts/chinese

+ 8 - 6
start/src/main/resources/application-dev.yaml

@@ -27,16 +27,16 @@ spring:
       logSlowSql: true
   redis:
     port: 6379
-    password:
+    password: meloinfo2023!
     host: 192.168.1.169
     database: 0
     lettuce:
       pool:
-        max-active: 8
-        max-idle: 8
-        min-idle: 5
-    timeout: 3
-
+        min-idle: 50
+        max-idle: 50
+        max-active: 100
+        max-wait: 3000s
+    timeout: 5000s
 #jetcache:
 #  statIntervalMinutes: 15 # 指定统计间隔,以分钟为单位。0表示没有统计数据。
 #  areaInCacheName: true # jetcache-anno使用缓存名称作为远程缓存密钥前缀,在jetcache 2.4.3 和之前的版本中,它总是在缓存名称中添加区域名称,从2.4.4开始我们有这个配置项,为兼容原因,默认值为true。
@@ -62,3 +62,5 @@ spring:
 #        minIdle: 5 # 连接池中的最小空闲连接数
 #        maxIdle: 20 # 连接池中的最大空闲连接数
 #        maxTotal: 50 # 连接池中的最大连接数
+logging:
+  config: classpath:logback-spring-dev.xml

+ 2 - 1
start/src/main/resources/application-pre.yaml

@@ -32,7 +32,8 @@ spring:
         max-active: 100
         max-wait: 3000s
     timeout: 5000s
-
+logging:
+  config: classpath:logback-spring-pre.xml
 
 
 

+ 1 - 1
start/src/main/resources/application.yaml

@@ -8,7 +8,7 @@ spring:
   application:
     name: eg-server
   profiles:
-    active: pre
+    active: dev
 #mybatis
 mybatis-plus:
   mapper-locations: classpath*:mapper/**/*.xml

+ 1 - 1
start/src/main/resources/logback-spring-dev.xml

@@ -2,7 +2,7 @@
 <configuration>
     <property name="PROJECT_NAME" value="eg-server"/>
     <!-- 日志存放路径 -->
-    <property name="LOG_HOME"  value="./log"/>
+    <property name="LOG_HOME"  value="./start/log/"/>
     <!-- 日志输出格式 -->
     <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
     <!-- 控制台输出 -->

+ 1 - 1
start/src/main/resources/logback-spring-pre.xml

@@ -2,7 +2,7 @@
 <configuration>
     <property name="PROJECT_NAME" value="eg-server"/>
     <!-- 日志存放路径 -->
-    <property name="LOG_HOME"  value="./log"/>
+    <property name="LOG_HOME"  value="/start/log/"/>
     <!-- 日志输出格式 -->
     <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
     <!-- 控制台输出 -->