2023-04-22 11:48:37 +08:00
|
|
|
|
server:
|
|
|
|
|
port: 8080
|
2023-11-30 18:31:25 +08:00
|
|
|
|
servlet:
|
2024-04-15 18:26:32 +08:00
|
|
|
|
context-path: /snail-job
|
2024-04-07 08:58:48 +08:00
|
|
|
|
|
2023-01-14 21:02:18 +08:00
|
|
|
|
spring:
|
2023-01-14 20:47:43 +08:00
|
|
|
|
profiles:
|
|
|
|
|
active: dev
|
2023-01-14 21:02:18 +08:00
|
|
|
|
datasource:
|
2024-04-16 09:08:34 +08:00
|
|
|
|
name: snail_job
|
2024-03-20 13:33:59 +08:00
|
|
|
|
## mysql
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
2024-04-16 09:08:34 +08:00
|
|
|
|
url: jdbc:mysql://localhost:3306/snail_job?useSSL=false&characterEncoding=utf8&useUnicode=true
|
2023-08-10 09:11:29 +08:00
|
|
|
|
username: root
|
2023-01-14 21:02:18 +08:00
|
|
|
|
password: root
|
2024-03-20 13:33:59 +08:00
|
|
|
|
## postgres
|
|
|
|
|
# driver-class-name: org.postgresql.Driver
|
2024-04-16 09:08:34 +08:00
|
|
|
|
# url: jdbc:postgresql://localhost:5432/snail_job?useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
|
2024-03-20 13:33:59 +08:00
|
|
|
|
# username: root
|
|
|
|
|
# password: root
|
|
|
|
|
## Oracle
|
|
|
|
|
# driver-class-name: oracle.jdbc.OracleDriver
|
|
|
|
|
# url: jdbc:oracle:thin:@//localhost:1521/XEPDB1
|
2024-04-16 09:08:34 +08:00
|
|
|
|
# username: snail_job
|
|
|
|
|
# password: SnailJob
|
2024-04-07 08:58:48 +08:00
|
|
|
|
## SQL Server 注意:由于system_user为SQLServer系统函数,因此SQLServer需要启用前缀配置,请配置mybatis-plus.global-config.db-config.table-prefix: er_
|
2024-03-25 08:50:57 +08:00
|
|
|
|
# driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
2024-04-16 09:08:34 +08:00
|
|
|
|
# url: jdbc:sqlserver://localhost:1433;DatabaseName=snail_job;SelectMethod=cursor;encrypt=false;rewriteBatchedStatements=true
|
2024-03-25 08:50:57 +08:00
|
|
|
|
# username: SA
|
2024-04-16 09:08:34 +08:00
|
|
|
|
# password: SnailJob@24
|
2024-04-01 08:46:24 +08:00
|
|
|
|
## mariadb
|
|
|
|
|
# driver-class-name: org.mariadb.jdbc.Driver
|
2024-04-16 09:08:34 +08:00
|
|
|
|
# url: jdbc:mariadb://localhost:3308/snail_job?useSSL=false&characterEncoding=utf8&useUnicode=true
|
2024-04-01 08:46:24 +08:00
|
|
|
|
# username: root
|
|
|
|
|
# password: root
|
2023-01-14 21:02:18 +08:00
|
|
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
|
|
|
hikari:
|
|
|
|
|
connection-timeout: 30000
|
|
|
|
|
minimum-idle: 5
|
|
|
|
|
maximum-pool-size: 20
|
|
|
|
|
auto-commit: true
|
|
|
|
|
idle-timeout: 30000
|
2024-04-16 09:08:34 +08:00
|
|
|
|
pool-name: snail_job
|
2023-01-14 21:02:18 +08:00
|
|
|
|
max-lifetime: 1800000
|
2023-04-19 22:46:51 +08:00
|
|
|
|
web:
|
|
|
|
|
resources:
|
|
|
|
|
static-locations: classpath:admin/
|
2024-03-20 13:33:59 +08:00
|
|
|
|
|
2023-01-14 21:02:18 +08:00
|
|
|
|
mybatis-plus:
|
2024-04-16 15:03:26 +08:00
|
|
|
|
typeAliasesPackage: com.aizuda.snailjob.template.datasource.persistence.po
|
2023-01-14 21:02:18 +08:00
|
|
|
|
global-config:
|
|
|
|
|
db-config:
|
2023-08-04 22:22:47 +08:00
|
|
|
|
where-strategy: NOT_EMPTY
|
2023-01-14 21:02:18 +08:00
|
|
|
|
capital-mode: false
|
|
|
|
|
logic-delete-value: 1
|
|
|
|
|
logic-not-delete-value: 0
|
|
|
|
|
configuration:
|
|
|
|
|
map-underscore-to-camel-case: true
|
|
|
|
|
cache-enabled: true
|
2024-04-07 08:58:48 +08:00
|
|
|
|
|
2023-04-20 09:00:54 +08:00
|
|
|
|
logging:
|
2024-03-20 13:33:59 +08:00
|
|
|
|
config: classpath:logback-boot.xml
|
|
|
|
|
# level:
|
|
|
|
|
# ## 方便调试 SQL
|
2024-04-16 15:03:26 +08:00
|
|
|
|
# com.aizuda.snailjob.template.datasource.persistence.mapper: debug
|
2023-05-07 11:44:57 +08:00
|
|
|
|
|
2024-04-15 18:26:32 +08:00
|
|
|
|
snail-job:
|
2023-11-10 15:33:20 +08:00
|
|
|
|
retry-pull-page-size: 1000 # 拉取重试数据的每批次的大小
|
|
|
|
|
job-pull-page-size: 1000 # 拉取重试数据的每批次的大小
|
2023-05-01 23:16:01 +08:00
|
|
|
|
netty-port: 1788 # 服务端netty端口
|
2023-11-10 15:33:20 +08:00
|
|
|
|
limiter: 1000 # 一个客户端每秒最多接收的重试数量指令
|
2023-06-16 17:38:19 +08:00
|
|
|
|
step: 100 # 号段模式下步长配置
|
|
|
|
|
log-storage: 90 # 日志保存时间(单位: day)
|
2023-06-17 18:55:55 +08:00
|
|
|
|
callback: # 回调配置
|
|
|
|
|
max-count: 288 #回调最大执行次数
|
|
|
|
|
trigger-interval: 900 #间隔时间
|
2023-11-10 15:33:20 +08:00
|
|
|
|
retry-max-pull-count: 10
|