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.
137 lines
5.2 KiB
137 lines
5.2 KiB
server:
|
|
port: 8060
|
|
servlet:
|
|
context-path: /api
|
|
|
|
spring:
|
|
############## datasource 相关
|
|
datasource:
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
url: jdbc:mysql://{{ application.db.host }}:{{ application.db.port }}/{{ application.db.database }}?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&serverTimezone=Asia/Shanghai&useSSL=false
|
|
username: {{ application.db.user }}
|
|
password: {{ application.db.password }}
|
|
#Hikari连接池配置
|
|
hikari:
|
|
#池中维护的最小空闲连接数
|
|
minimum-idle: 5
|
|
#池中最大连接数,包括闲置和使用中的连接
|
|
maximum-pool-size: 15
|
|
#自动提交从池中返回的连接
|
|
auto-commit: true
|
|
#连接允许在池中闲置的最长时间
|
|
idle-timeout: 30000
|
|
#连接池的用户定义名称,主要出现在日志记录和JMX管理控制台中以识别池和池配置
|
|
pool-name: DatebookHikariCP
|
|
#池中连接最长生命周期
|
|
max-lifetime: 18000000
|
|
#等待来自池的连接的最大毫秒数
|
|
connection-timeout: 30000
|
|
#验证该连接是否是有效的查询语句
|
|
connection-test-query: select 1 from dual
|
|
cloud:
|
|
inetutils:
|
|
timeout-seconds: 10
|
|
config:
|
|
enabled: false
|
|
############## redis 相关
|
|
redis:
|
|
host: {{ application.redis.host }}
|
|
port: {{ application.redis.port }}
|
|
password: {{ application.redis.password }}
|
|
timeout: 10000
|
|
jedis:
|
|
pool:
|
|
max-active: 1000
|
|
max-wait: -1ms
|
|
max-idle: 10
|
|
min-idle: 5
|
|
database: {{application.redis.database}}
|
|
############## eureka 相关
|
|
eureka:
|
|
instance:
|
|
instance-id: ${spring.cloud.client.ip-address}:${server.port}
|
|
prefer-ip-address: true
|
|
client:
|
|
healthcheck:
|
|
enabled: true
|
|
service-url:
|
|
defaultZone: http://{{ application.eureka.host }}:{{ application.eureka.port }}/eureka
|
|
|
|
############## mybatis-plus配置
|
|
mybatis-plus:
|
|
# 启动检查MyBatis配置文件
|
|
check-config-location: false
|
|
# MyBatis配置文件位置
|
|
config-location:
|
|
# MyBaits别名包扫描路径
|
|
type-aliases-package: com.qiangesoft.mybatisplusjoin.entity
|
|
# Mapper所对应的XML文件位置 默认【classpath*:/mapper/**/*.xml】
|
|
mapper-locations: classpath*:/mapper/*Mapper.xml
|
|
# TypeHandler扫描路径
|
|
type-handlers-package:
|
|
configuration:
|
|
# 日志打印
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
# 是否开启自动驼峰命名规则
|
|
map-underscore-to-camel-case: true
|
|
# 开启Mybatis二级缓存,默认为true
|
|
cache-enabled: true
|
|
global-config:
|
|
# 控制台mybatis-plus的logo
|
|
banner: true
|
|
db-config:
|
|
# 全局默认主键类型
|
|
id-type: auto
|
|
# 逻辑删除配置
|
|
logic-delete-field: deleted
|
|
logic-delete-value: 1
|
|
logic-not-delete-value: 0
|
|
|
|
############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
|
|
sa-token:
|
|
# token 名称(同时也是 cookie 名称)
|
|
token-name: Token
|
|
# token 有效期(单位:秒) 默认30天,-1 代表永久有效
|
|
timeout: 2592000
|
|
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
|
|
active-timeout: -1
|
|
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
|
|
is-concurrent: true
|
|
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
|
|
is-share: true
|
|
# token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
|
|
token-style: uuid
|
|
# 是否输出操作日志
|
|
is-log: true
|
|
|
|
############## swagger
|
|
swagger:
|
|
show: true
|
|
|
|
############## minio
|
|
minio:
|
|
config:
|
|
ip: {{ application.minio.host }} #ip地址
|
|
port: {{ application.minio.port }} # 端口号
|
|
accessKey: {{ application.minio.accessKey }} # 账号
|
|
secretKey: {{ application.minio.secretKey }} # 密码
|
|
secure: false #如果是true,则用的是https而不是http,默认值是true
|
|
bucketName: "{{ application.minio.bucketName }}" # 桶的名字
|
|
downloadDir: "{{ application.minio.downloadDir }}" #保存到本地的路径
|
|
readPath: "http://{{ application.minio.host }}:{{ application.minio.port }}" #保存到本地的路径
|
|
endpoint: "http://{{ application.minio.host }}:{{ application.minio.port }}" #保存到本地的路径
|
|
|
|
############## xxl-job
|
|
xxl:
|
|
job:
|
|
admin:
|
|
addresses: {{ application.xxlJob.addresses }} # 调度中心部署根地址
|
|
accessToken: "{{ application.xxlJob.accessToken }}" # 执行器通讯TOKEN,非空时启用
|
|
executor:
|
|
appname: xxl-{{ application.name }} # 执行器AppName
|
|
address: {{ application.xxlJob.address }} # 执行器注册地址,为空时使用内嵌服务IP:PORT
|
|
ip: {{ application.xxlJob.ip }} # 执行器IP,默认为空自动获取
|
|
port: {{ application.xxlJob.port }} # 执行器端口号
|
|
logpath: /data/applogs/xxl-job/jobhandler # 执行器运行日志文件存储磁盘路径
|
|
logretentiondays: 30 # 执行器日志文件保存天数
|