2022-11-17 04:02:04 +00:00
|
|
|
# 项目配置
|
|
|
|
|
like:
|
|
|
|
|
upload-directory: /www/uploads/likeadmin-java/ # 上传目录
|
2023-01-17 10:02:55 +00:00
|
|
|
# 验证码配置
|
|
|
|
|
captcha:
|
|
|
|
|
# 是否开启验证码
|
|
|
|
|
status: true
|
|
|
|
|
# 验证码有效时长
|
|
|
|
|
expire: 120
|
|
|
|
|
# 验证码缓存键名
|
|
|
|
|
token: "captcha:key:"
|
2023-03-15 07:23:51 +00:00
|
|
|
# Swagger配置
|
|
|
|
|
swagger:
|
|
|
|
|
# 是否开启swagger
|
|
|
|
|
enabled: true
|
|
|
|
|
# 请求前缀
|
|
|
|
|
pathMapping: /dev-api
|
2022-11-17 04:02:04 +00:00
|
|
|
|
2022-04-02 09:05:14 +00:00
|
|
|
# 服务配置
|
|
|
|
|
server:
|
|
|
|
|
port: 8082
|
2022-04-15 03:12:41 +00:00
|
|
|
servlet:
|
2022-04-19 06:04:25 +00:00
|
|
|
context-path: /
|
2022-04-02 09:05:14 +00:00
|
|
|
|
|
|
|
|
# 框架配置
|
|
|
|
|
spring:
|
|
|
|
|
profiles:
|
2022-09-21 01:59:51 +00:00
|
|
|
active: dev
|
2022-08-16 06:07:48 +00:00
|
|
|
mvc:
|
2024-10-30 16:07:52 +00:00
|
|
|
static-path-pattern: /adminapi/static/**
|
2022-11-16 15:21:59 +00:00
|
|
|
throw-exception-if-no-handler-found: true
|
2023-03-14 11:00:36 +00:00
|
|
|
pathmatch:
|
|
|
|
|
matching-strategy: ant_path_matcher
|
2022-04-02 09:05:14 +00:00
|
|
|
# 数据源配置
|
|
|
|
|
datasource:
|
2022-09-21 01:59:51 +00:00
|
|
|
url: jdbc:mysql://localhost:3306/likeadmin?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&useSSL=false
|
2022-04-02 09:05:14 +00:00
|
|
|
type: com.zaxxer.hikari.HikariDataSource # 数据源类型
|
|
|
|
|
driver-class-name: com.mysql.jdbc.Driver # MySql的驱动
|
|
|
|
|
username: root # 数据库账号
|
|
|
|
|
password: root # 数据库密码
|
|
|
|
|
hikari:
|
|
|
|
|
connection-timeout: 30000 # 等待连接分配连接的最大时长(毫秒),超出时长还没可用连接则发送SQLException,默认30秒
|
|
|
|
|
minimum-idle: 5 # 最小连接数
|
|
|
|
|
maximum-pool-size: 20 # 最大连接数
|
|
|
|
|
auto-commit: true # 自动提交
|
|
|
|
|
idle-timeout: 600000 # 连接超时的最大时长(毫秒),超时则被释放(retired),默认10分钟
|
|
|
|
|
pool-name: DateSourceHikariCP # 连接池名称
|
|
|
|
|
max-lifetime: 1800000 # 连接的生命时长(毫秒),超时而且没被使用则被释放,默认30分钟(1800000ms)
|
|
|
|
|
connection-init-sql: SELECT 1 # 连接时发起SQL测试脚本
|
|
|
|
|
# 限制配置
|
|
|
|
|
servlet:
|
|
|
|
|
multipart:
|
|
|
|
|
max-file-size: 100MB # 文件上传大小限制
|
|
|
|
|
max-request-size: 100MB # 文件最大请求限制
|
|
|
|
|
enabled: true
|
|
|
|
|
# Redis配置
|
|
|
|
|
redis:
|
|
|
|
|
host: localhost # Redis服务地址
|
|
|
|
|
port: 6379 # Redis端口
|
|
|
|
|
password: # Redis密码
|
|
|
|
|
database: 0 # 数据库索引
|
|
|
|
|
timeout: 5000 # 连接超时
|
|
|
|
|
lettuce:
|
|
|
|
|
pool:
|
|
|
|
|
max-wait: 30000 # 连接池最大阻塞等待时间(使用负数表示没有限制,默认-1)
|
|
|
|
|
max-active: 100 # 连接池最大连接数(使用负数表示没有限制,默认8)
|
|
|
|
|
max-idle: 20 # 连接池中的最大空闲连接(默认8)
|
|
|
|
|
min-idle: 0 # 连接池中的最小空闲连接(默认0)
|
2024-09-02 15:59:28 +00:00
|
|
|
main:
|
|
|
|
|
allow-circular-references: true
|
2022-04-02 09:05:14 +00:00
|
|
|
# Mybatis-plus配置
|
|
|
|
|
mybatis-plus:
|
2022-11-16 03:35:52 +00:00
|
|
|
mapper-locations: classpath*:/mapper/**Mapper.xml
|
2022-08-19 01:39:25 +00:00
|
|
|
typeAliasesPackage: com.mdd.**.mapper
|
2022-04-02 09:05:14 +00:00
|
|
|
global-config:
|
|
|
|
|
banner: false
|
|
|
|
|
db-config:
|
2022-11-16 03:35:52 +00:00
|
|
|
table-prefix: la_
|
2022-07-14 08:23:00 +00:00
|
|
|
configuration-properties:
|
2022-11-16 03:35:52 +00:00
|
|
|
prefix: la_
|
|
|
|
|
|
|
|
|
|
# Sa-token配置
|
|
|
|
|
sa-token:
|
2024-09-01 16:43:47 +00:00
|
|
|
token-name: token # token的名称
|
2022-11-16 03:35:52 +00:00
|
|
|
timeout: 2592000 # token有效期单位s(默认30天,-1代表永不过期)
|
|
|
|
|
activity-timeout: -1 # token临时有效期(指定时间无操作掉线)
|
|
|
|
|
is-concurrent: true # 是否允许同一账号并发登录
|
|
|
|
|
is-share: false # 多人同登账号共用token
|
|
|
|
|
token-style: random-64 # token生成的风格
|
|
|
|
|
is-print: false # 打印版本字符画
|
|
|
|
|
is-log: false # 是否输出操作日志
|