lcoa-java/src/main/resources/application.yml

122 lines
3.7 KiB
YAML
Raw Normal View History

2023-02-01 10:37:18 +08:00
server:
2023-02-21 17:22:39 +08:00
port: 10098
2023-02-01 10:37:18 +08:00
spring:
profiles:
active: dev
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
mvc:
pathmatch:
# 配置策略
matching-strategy: ant-path-matcher
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
2023-07-20 14:14:41 +08:00
url: jdbc:mysql://127.0.0.1:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
2023-05-05 14:57:59 +08:00
username: root
2023-07-20 14:14:41 +08:00
password: root
2023-02-01 10:37:18 +08:00
druid:
# 下面为连接池的补充设置,应用到上面所有数据源中
# 初始化大小,最小,最大
initial-size: 5
min-idle: 5
max-active: 1000
# 配置获取连接等待超时的时间
max-wait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
time-between-eviction-runs-millis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
# 打开PSCache并且指定每个连接上PSCache的大小
pool-prepared-statements: true
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
max-pool-prepared-statement-per-connection-size: 20
filters: stat,wall
use-global-data-source-stat: true
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connect-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
2023-02-23 11:26:02 +08:00
hikari:
auto-commit: true
2023-02-01 10:37:18 +08:00
# 配置监控服务器
stat-view-servlet:
login-username: admin
login-password: 123456
reset-enable: false
url-pattern: /druid/*
# 添加IP白名单
#allow:
# 添加IP黑名单当白名单和黑名单重复时黑名单优先级更高
#deny:
web-stat-filter:
# 添加过滤规则
url-pattern: /*
# 忽略过滤格式
exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
thymeleaf:
prefix: classpath:/html/
suffix: .html
2023-02-23 11:26:02 +08:00
jackson:
default-property-inclusion: non_null
main:
allow-circular-references: true
2023-02-01 10:37:18 +08:00
mybatis-plus:
global-config:
banner: false
enableSqlRunner: true
mapper-locations: classpath:xml/*.xml
ydool:
sms:
accessKeyId: LTAIlV2ofsSoQe1F
accessKeySecret: SzzGOXLWlH5uMfTzWSjSiXeJRob5Hn
knife4j:
# 开启增强配置
enable: true
# 开启Swagger的Basic认证功能,默认是false
basic:
enable: false
# Basic认证用户名
username: ydool
# Basic认证密码
password: ydool@123
setting:
# 开启调试
enableDebug: true
# 开启搜索框
enableSearch: true
# 开启OpenApi
enableOpenApi: true
############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
sa-token:
# token名称 (同时也是cookie名称)
token-name: x-token
# token有效期单位s 默认30天, -1代表永不过期
2023-02-10 13:55:45 +08:00
timeout: 864000
2023-02-01 10:37:18 +08:00
# token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
2023-03-06 16:19:12 +08:00
activity-timeout: 864000
2023-02-01 10:37:18 +08:00
# 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
2023-02-15 11:45:54 +08:00
is-concurrent: true
2023-02-01 10:37:18 +08:00
# 在多人登录同一账号时是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
2023-02-15 11:45:54 +08:00
is-share: true
2023-02-01 10:37:18 +08:00
# token风格
2023-02-22 10:30:35 +08:00
token-style: uuid
2023-02-01 10:37:18 +08:00
# 是否输出操作日志
2023-02-22 10:30:47 +08:00
is-log: false
2023-02-01 10:37:18 +08:00
# token前缀
token-prefix: Bearer