gtsoft-snail-job-demo/src/main/resources/application.yml
2024-07-11 16:07:52 +08:00

60 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
port: 8018
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
profiles:
active: dev
datasource:
name: snail_job
url: jdbc:mysql://localhost:3306/snail_job?useSSL=false&characterEncoding=utf8&useUnicode=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: demo
max-lifetime: 1800000
connection-test-query: SELECT 1
mybatis-plus:
mapper-locations: classpath:/mapper/*.xml
typeAliasesPackage: com.example.snail.job.po
global-config:
db-config:
field-strategy: NOT_EMPTY
capital-mode: false
logic-delete-value: 1
logic-not-delete-value: 0
configuration:
map-underscore-to-camel-case: true
cache-enabled: true
logging:
config: classpath:logback-boot.xml
snail-job:
# 任务调度服务器信息
server:
# 服务器IP地址或域名集群时建议通过 nginx 做负载均衡
host: 127.0.0.1
# 服务器通讯端口(不是后台管理页面服务端口)
port: 1788
# 命名空间
namespace: 764d604ec6fc45f68cd92514c40e9e1a
# 接入组名
group: snail_job_demo_group
# 接入组 token
token: SJ_Wyz3dmsdbDOkDujOTSSoBjGQP1BMsVnj
# 客户端绑定IP必须服务器可以访问到默认自动推断在服务器无法调度客户端时需要手动配置
host: 127.0.0.1
# 客户端通讯端口,默认 1789
port: 1789