120 lines
2.3 KiB
YAML
120 lines
2.3 KiB
YAML
# 项目相关配置
|
||
delivery:
|
||
# 名称
|
||
name: Delivery
|
||
# 版本
|
||
version: 3.9.0
|
||
# 版权年份
|
||
copyrightYear: 2025
|
||
# 文件路径 示例( Windows配置D:/delivery/uploadPath,Linux配置 /home/delivery/uploadPath)
|
||
profile: D:/delivery/uploadPath
|
||
# 获取ip地址开关
|
||
addressEnabled: false
|
||
# 验证码类型 math 数字计算 char 字符验证
|
||
captchaType: math
|
||
|
||
# 开发环境配置
|
||
server:
|
||
port: 8087
|
||
servlet:
|
||
context-path: /
|
||
tomcat:
|
||
uri-encoding: UTF-8
|
||
accept-count: 1000
|
||
threads:
|
||
max: 800
|
||
min-spare: 100
|
||
|
||
# 日志配置
|
||
logging:
|
||
level:
|
||
com.delivery: debug
|
||
org.springframework: warn
|
||
|
||
# 用户配置
|
||
user:
|
||
password:
|
||
maxRetryCount: 5
|
||
lockTime: 10
|
||
|
||
# Spring配置
|
||
spring:
|
||
messages:
|
||
basename: i18n/messages
|
||
profiles:
|
||
active: druid
|
||
servlet:
|
||
multipart:
|
||
max-file-size: 10MB
|
||
max-request-size: 20MB
|
||
devtools:
|
||
restart:
|
||
enabled: false
|
||
redis:
|
||
host: 192.168.1.28
|
||
port: 6379
|
||
database: 0
|
||
password:
|
||
timeout: 10s
|
||
lettuce:
|
||
pool:
|
||
min-idle: 0
|
||
max-idle: 8
|
||
max-active: 8
|
||
max-wait: -1ms
|
||
|
||
# token配置
|
||
token:
|
||
header: Authorization
|
||
secret: abcdefghijklmnopqrstuvwxyz
|
||
expireTime: 30
|
||
|
||
# MyBatis配置
|
||
mybatis:
|
||
# 搜索指定包别名
|
||
typeAliasesPackage: com.delivery.project.**.domain
|
||
mapperLocations: classpath*:mybatis/**/*Mapper.xml
|
||
configLocation: classpath:mybatis/mybatis-config.xml
|
||
|
||
# PageHelper分页插件
|
||
pagehelper:
|
||
helperDialect: mysql
|
||
supportMethodsArguments: true
|
||
params: count=countSql
|
||
|
||
# Swagger配置
|
||
swagger:
|
||
enabled: true
|
||
pathMapping: /dev-api
|
||
|
||
# 防盗链配置
|
||
referer:
|
||
enabled: false
|
||
# 建议替换为你自己的域名白名单
|
||
allowed-domains: localhost,127.0.0.1,delivery.vip,www.delivery.vip
|
||
|
||
# 防止XSS攻击
|
||
xss:
|
||
enabled: true
|
||
excludes: /system/notice
|
||
urlPatterns: /system/*,/monitor/*,/tool/*
|
||
|
||
# 代码生成
|
||
gen:
|
||
author: delivery
|
||
# 默认生成包路径(包名已改)
|
||
packageName: com.delivery.project.system
|
||
autoRemovePre: false
|
||
tablePrefix: sys_
|
||
allowOverwrite: false
|
||
|
||
minio:
|
||
endpoint: http://192.168.1.28:9000
|
||
accessKey: admin
|
||
secretKey: admin123
|
||
bucketName: delivery
|
||
public-read: true
|
||
|
||
upload:
|
||
base-dir: /data/upload/images
|
||
base-url: http://192.168.1.28/files |