feat(3.2.0): 优化代码

This commit is contained in:
byteblogs168 2024-04-07 15:29:45 +08:00
parent 26e8d3caf1
commit e7bf7658a1
2 changed files with 7 additions and 6 deletions

View File

@ -35,7 +35,7 @@ services:
environment: environment:
POSTGRES_USER: root POSTGRES_USER: root
POSTGRES_PASSWORD: root POSTGRES_PASSWORD: root
POSTGRES_DB: postgres POSTGRES_DB: easy_retry
ports: ports:
- "5432:5432" - "5432:5432"
volumes: volumes:
@ -83,4 +83,4 @@ services:
volumes: volumes:
- mariadb:/var/lib/mysql/ - mariadb:/var/lib/mysql/
# 注入初始化脚本, mysql # 注入初始化脚本, mysql
- ../sql/easy_retry_mysql.sql:/docker-entrypoint-initdb.d/init.sql:ro - ../sql/easy_retry_mysql.sql:/docker-entrypoint-initdb.d/init.sql:ro

View File

@ -2,6 +2,7 @@ server:
port: 8080 port: 8080
servlet: servlet:
context-path: /easy-retry context-path: /easy-retry
spring: spring:
profiles: profiles:
active: dev active: dev
@ -14,7 +15,7 @@ spring:
password: root password: root
## postgres ## postgres
# driver-class-name: org.postgresql.Driver # driver-class-name: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true # url: jdbc:postgresql://localhost:5432/easy_retry?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
# username: root # username: root
# password: root # password: root
## Oracle ## Oracle
@ -22,7 +23,7 @@ spring:
# url: jdbc:oracle:thin:@//localhost:1521/XEPDB1 # url: jdbc:oracle:thin:@//localhost:1521/XEPDB1
# username: easy_retry # username: easy_retry
# password: EasyRetry # password: EasyRetry
## SQL Server ## SQL Server 注意:由于system_user为SQLServer系统函数因此SQLServer需要启用前缀配置请配置mybatis-plus.global-config.db-config.table-prefix: er_
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://localhost:1433;DatabaseName=easy_retry;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true # url: jdbc:sqlserver://localhost:1433;DatabaseName=easy_retry;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
# username: SA # username: SA
@ -53,10 +54,11 @@ mybatis-plus:
capital-mode: false capital-mode: false
logic-delete-value: 1 logic-delete-value: 1
logic-not-delete-value: 0 logic-not-delete-value: 0
# table-prefix: er_ # table-prefix: er_ # SQLServer 请打开该配置
configuration: configuration:
map-underscore-to-camel-case: true map-underscore-to-camel-case: true
cache-enabled: true cache-enabled: true
logging: logging:
config: classpath:logback-boot.xml config: classpath:logback-boot.xml
# level: # level:
@ -74,6 +76,5 @@ easy-retry:
callback: # 回调配置 callback: # 回调配置
max-count: 288 #回调最大执行次数 max-count: 288 #回调最大执行次数
trigger-interval: 900 #间隔时间 trigger-interval: 900 #间隔时间
db-type: mysql #当前使用的数据库
mode: all mode: all
retry-max-pull-count: 10 retry-max-pull-count: 10