Browse Source

初始化xxl-job配置

dev
xggz 3 years ago
parent
commit
048b75dfe5
  1. 35
      zsw-scheduled-admin.yml

35
zsw-scheduled-admin.yml

@ -4,8 +4,14 @@ zsw:
username: xxl_job_230
password: zsw2022#Job
# xxl-job邮箱配置
spring:
# 数据库配置
datasource:
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${zsw.databases.url}
username: ${zsw.databases.username}
password: ${zsw.databases.password}
mail:
default-encoding: UTF-8
host: smtp.exmail.qq.com
@ -24,6 +30,33 @@ spring:
socketFactory:
class: javax.net.ssl.SSLSocketFactory
# 持久层配置
mybatis-plus:
# 开启租户数据维护
tenant-enabled: true
mapper-locations: classpath:/mybatis-mapper/*Mapper.xml
#实体扫描,多个package用逗号或者分号分隔
type-aliases-package: com.xxl.job.admin.core.model
global-config:
# 关闭MP3.x自带的banner
banner: false
db-config:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type: AUTO
#字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
field-strategy: NOT_EMPTY
#驼峰下划线转换
column-underline: true
#逻辑删除配置
logic-delete-field: deleted
logic-delete-value: 1
logic-not-delete-value: 0
refresh: true
configuration:
map-underscore-to-camel-case: true
cache-enabled: false
call-setters-on-nulls: true
# 不启用邮箱连接检查
management:
health:

Loading…
Cancel
Save