2023-02-01 10:37:18 +08:00
|
|
|
|
server:
|
|
|
|
|
port: 8080
|
|
|
|
|
|
|
|
|
|
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-02-01 10:55:55 +08:00
|
|
|
|
url: jdbc:mysql://10.0.0.200:3306/lc_oa?useSSL=false&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
|
2023-02-01 10:44:17 +08:00
|
|
|
|
username: lc_oa
|
|
|
|
|
password: wZxxeSJjtTzT2iAk
|
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
|
|
|
|
|
# 配置监控服务器
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
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过期) 单位: 秒
|
|
|
|
|
activity-timeout: 1800
|
|
|
|
|
# 是否允许同一账号并发登录 (为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-16 17:20:12 +08:00
|
|
|
|
token-style: simple-uuid
|
2023-02-01 10:37:18 +08:00
|
|
|
|
# 是否输出操作日志
|
|
|
|
|
is-log: false
|
|
|
|
|
# token前缀
|
|
|
|
|
token-prefix: Bearer
|
|
|
|
|
|