114 lines
3.1 KiB
YAML
114 lines
3.1 KiB
YAML
server:
|
||
port: 8080
|
||
# SpringBoot中我们既可以使用Tomcat作为Http服务,也可以用Undertow来代替。Undertow在高并发业务场景中,性能优于Tomcat
|
||
undertow:
|
||
threads:
|
||
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
|
||
io: 16
|
||
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
|
||
worker: 400
|
||
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
|
||
# 每块buffer的空间大小,越小的空间被利用越充分
|
||
buffer-size: 1024
|
||
# HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
|
||
max-http-post-size: -1
|
||
# 是否分配的直接内存
|
||
direct-buffers: true
|
||
|
||
sa-token:
|
||
# token有效期,单位秒
|
||
expireTime: 7200
|
||
refreshExpireTime: 604800
|
||
# 是否允许同一账号多终端登录,默认为true
|
||
is-concurrent: true
|
||
|
||
|
||
spring:
|
||
application:
|
||
name: das
|
||
#json格式化全局配置,相当于@JsonFormat
|
||
jackson:
|
||
time-zone: GMT+8
|
||
date-format: yyyy-MM-dd HH:mm:ss
|
||
# 指定默认包含的熟悉,NON_NULL表示只序列化非空属性
|
||
default-property-inclusion: non_null
|
||
# 配置文件上传大小限制
|
||
servlet:
|
||
multipart:
|
||
# 单个文件最大大小
|
||
max-file-size: 1024MB
|
||
# 多个文件总大小
|
||
max-request-size: 2048MB
|
||
datasource:
|
||
url: jdbc:postgresql://192.168.109.187:5432/das
|
||
username: das
|
||
password: qwaszx12
|
||
# # redis相关配置
|
||
data:
|
||
redis:
|
||
host: 192.168.109.187
|
||
database: 0
|
||
port: 6379
|
||
password: zaq12WSX
|
||
client-type: lettuce
|
||
|
||
|
||
# 配置 xml 文件所在位置 配置全局的 主键策略,默认为 ASSIGN_ID 默认为 【雪花算法】 , auto 自增
|
||
mybatis-plus:
|
||
mapper-locations: classpath*:/mapper/**/*.xml
|
||
# 搜索指定包别名
|
||
typeAliasesPackage: com.das.**.entity
|
||
global-config:
|
||
# 关闭MP3.0自带的banner
|
||
banner: false
|
||
db-config:
|
||
id-type: ASSIGN_ID
|
||
# 逻辑删除
|
||
logic-not-delete-value: 0
|
||
logic-delete-value: 1
|
||
#字段策略
|
||
insert-strategy: not_null
|
||
update-strategy: not_null
|
||
where-strategy: not_empty
|
||
#驼峰下划线转换
|
||
table-underline: true
|
||
# 开启驼峰命名 默认开启驼峰命名
|
||
# mybatis-plus配置控制台打印完整带参数SQL语句
|
||
configuration:
|
||
map-underscore-to-camel-case: true
|
||
cache-enabled: false
|
||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
|
||
# 验证码相关
|
||
captcha:
|
||
enabled: true
|
||
verify-type: calculate
|
||
expire: 120
|
||
|
||
calc:
|
||
debug:
|
||
enable: false
|
||
task-name:
|
||
|
||
das:
|
||
debug: false
|
||
aes:
|
||
key: b6967ee87b86d85a
|
||
|
||
logging:
|
||
level:
|
||
root: ERROR
|
||
com:
|
||
das: ERROR
|
||
|
||
tdengine:
|
||
password: taosdata
|
||
url: jdbc:TAOS-RS://192.168.109.187:6041/das
|
||
username: root
|
||
|
||
minio:
|
||
url: http://192.168.109.187:9000
|
||
bucket: das
|
||
publicBucket: das-public
|
||
accessKey: das
|
||
secretKey: zaq12WSX |