From 1210a75876c1f15e6dcfee309ac799433bbdaa90 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Mon, 18 Mar 2024 01:20:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E7=9A=84=E9=BB=98=E8=AE=A4=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/easy-retry-server/easy-retry-server-starter/src/main/resources/application.yml b/easy-retry-server/easy-retry-server-starter/src/main/resources/application.yml index f308cb3c..f8b06dd5 100644 --- a/easy-retry-server/easy-retry-server-starter/src/main/resources/application.yml +++ b/easy-retry-server/easy-retry-server-starter/src/main/resources/application.yml @@ -7,11 +7,22 @@ spring: active: dev datasource: name: easy_retry - url: jdbc:mysql://localhost:3306/easy_retry?useSSL=false&characterEncoding=utf8&useUnicode=true + ## mysql + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/easy_retry?useSSL=false&characterEncoding=utf8&useUnicode=true username: root password: root + ## postgres +# driver-class-name: org.postgresql.Driver +# url: jdbc:postgresql://localhost:5432/postgres?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true +# username: root +# password: root + ## Oracle +# driver-class-name: oracle.jdbc.OracleDriver +# url: jdbc:oracle:thin:@//localhost:1521/XEPDB1 +# username: root +# password: root type: com.zaxxer.hikari.HikariDataSource - driver-class-name: com.mysql.cj.jdbc.Driver hikari: connection-timeout: 30000 minimum-idle: 5 @@ -20,10 +31,11 @@ spring: idle-timeout: 30000 pool-name: easy_retry max-lifetime: 1800000 - connection-test-query: SELECT 1 +# connection-test-query: SELECT 1 web: resources: static-locations: classpath:admin/ + mybatis-plus: typeAliasesPackage: com.aizuda.easy.retry.template.datasource.persistence.po global-config: @@ -37,7 +49,10 @@ mybatis-plus: map-underscore-to-camel-case: true cache-enabled: true logging: - config: classpath:logback-boot.xml + config: classpath:logback-boot.xml +# level: +# ## 方便调试 SQL +# com.aizuda.easy.retry.template.datasource.persistence.mapper: debug easy-retry: retry-pull-page-size: 1000 # 拉取重试数据的每批次的大小 @@ -53,6 +68,3 @@ easy-retry: db-type: mysql #当前使用的数据库 mode: all retry-max-pull-count: 10 - - -