From abe6b05c5c1322eb28185a8354d02c72247f26b2 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 14 三月 2024 01:13:29 +0800 Subject: [PATCH] update 优化 !pr493 代码结构与问题修复 --- ruoyi-extend/ruoyi-easyretry-server/src/main/resources/application.yml | 53 +++++++++++++---------------------------------------- 1 files changed, 13 insertions(+), 40 deletions(-) diff --git a/ruoyi-extend/ruoyi-easyretry-server/src/main/resources/application.yml b/ruoyi-extend/ruoyi-easyretry-server/src/main/resources/application.yml index e813863..a26bfd3 100644 --- a/ruoyi-extend/ruoyi-easyretry-server/src/main/resources/application.yml +++ b/ruoyi-extend/ruoyi-easyretry-server/src/main/resources/application.yml @@ -2,26 +2,12 @@ port: 8800 servlet: context-path: /easy-retry + spring: application: name: ruoyi-easyretry-server profiles: active: @profiles.active@ - datasource: - name: ry-vue - url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true - username: root - password: root - type: com.zaxxer.hikari.HikariDataSource - driver-class-name: com.mysql.cj.jdbc.Driver - hikari: - connection-timeout: 30000 - minimum-idle: 5 - maximum-pool-size: 20 - auto-commit: true - idle-timeout: 30000 - pool-name: easy_retry - max-lifetime: 1800000 web: resources: static-locations: classpath:admin/ @@ -37,30 +23,17 @@ configuration: map-underscore-to-camel-case: true cache-enabled: true + logging: - config: classpath:logback-boot.xml + config: classpath:logback-plus.xml -easy-retry: - retry-pull-page-size: 1000 # 鎷夊彇閲嶈瘯鏁版嵁鐨勬瘡鎵规鐨勫ぇ灏� - job-pull-page-size: 1000 # 鎷夊彇閲嶈瘯鏁版嵁鐨勬瘡鎵规鐨勫ぇ灏� - netty-port: 1788 # 鏈嶅姟绔痭etty绔彛 - total-partition: 2 # 閲嶈瘯鍜屾淇¤〃鐨勫垎鍖烘�绘暟 - limiter: 1000 # 涓�涓鎴风姣忕鏈�澶氭帴鏀剁殑閲嶈瘯鏁伴噺鎸囦护 - step: 100 # 鍙锋妯″紡涓嬫闀块厤缃� - log-storage: 90 # 鏃ュ織淇濆瓨鏃堕棿(鍗曚綅: day) - callback: # 鍥炶皟閰嶇疆 - max-count: 288 #鍥炶皟鏈�澶ф墽琛屾鏁� - trigger-interval: 900 #闂撮殧鏃堕棿 - db-type: mysql #褰撳墠浣跨敤鐨勬暟鎹簱 - mode: all - retry-max-pull-count: 10 - ---- # 鐩戞帶涓績閰嶇疆 -spring.boot.admin.client: - # 澧炲姞瀹㈡埛绔紑鍏� - enabled: true - url: http://localhost:9090/admin - instance: - service-host-type: IP - username: ruoyi - password: 123456 +management: + endpoints: + web: + exposure: + include: '*' + endpoint: + health: + show-details: ALWAYS + logfile: + external-file: ./logs/ruoyi-easyretry-server/console.log -- Gitblit v1.9.3