You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.0 KiB
76 lines
2.0 KiB
zsw: |
|
databases: |
|
url: jdbc:mysql://127.0.0.1:3306/xxl_job_230?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&failOverReadOnly=false&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=GMT%2B8 |
|
username: xxl_job_230 |
|
password: zsw2022#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 |
|
password: xxxxxx |
|
port: 25 |
|
protocol: smtp |
|
from: job@zsw.com |
|
username: job@zsw.com |
|
properties: |
|
mail: |
|
smtp: |
|
auth: true |
|
starttls: |
|
enable: true |
|
required: true |
|
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: |
|
mail: |
|
enabled: false |
|
|
|
### xxl-job调度中心配置 |
|
xxl: |
|
job: |
|
accessToken: xxx |
|
i18n: zh_CN |
|
triggerpool: |
|
fast: |
|
max: 200 |
|
slow: |
|
max: 100 |
|
logretentiondays: 30 |