Files
delivery_management/src/main/resources/application.yml

120 lines
2.3 KiB
YAML
Raw Normal View History

2025-10-11 10:44:05 +08:00
# 项目相关配置
2025-10-13 09:48:25 +08:00
delivery:
2025-10-11 10:44:05 +08:00
# 名称
2025-10-13 09:48:25 +08:00
name: Delivery
2025-10-11 10:44:05 +08:00
# 版本
2025-10-11 14:02:53 +08:00
version: 3.9.0
2025-10-11 10:44:05 +08:00
# 版权年份
copyrightYear: 2025
2025-10-13 09:48:25 +08:00
# 文件路径 示例( Windows配置D:/delivery/uploadPathLinux配置 /home/delivery/uploadPath
profile: D:/delivery/uploadPath
2025-10-11 10:44:05 +08:00
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数字计算 char 字符验证
captchaType: math
# 开发环境配置
server:
port: 8087
2025-10-11 10:44:05 +08:00
servlet:
context-path: /
tomcat:
uri-encoding: UTF-8
accept-count: 1000
threads:
max: 800
min-spare: 100
# 日志配置
logging:
level:
2025-10-13 09:48:25 +08:00
com.delivery: debug
2025-10-11 10:44:05 +08:00
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
2025-10-11 10:44:05 +08:00
redis:
2025-10-13 09:48:25 +08:00
host: 192.168.1.28
2025-10-11 10:44:05 +08:00
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
2025-10-13 09:48:25 +08:00
2025-10-11 10:44:05 +08:00
# MyBatis配置
mybatis:
# 搜索指定包别名
2025-10-13 09:48:25 +08:00
typeAliasesPackage: com.delivery.project.**.domain
2025-10-11 14:02:53 +08:00
mapperLocations: classpath*:mybatis/**/*Mapper.xml
2025-10-11 10:44:05 +08:00
configLocation: classpath:mybatis/mybatis-config.xml
# PageHelper分页插件
pagehelper:
helperDialect: mysql
supportMethodsArguments: true
params: count=countSql
# Swagger配置
swagger:
enabled: true
pathMapping: /dev-api
2025-10-11 14:02:53 +08:00
# 防盗链配置
referer:
enabled: false
2025-10-13 09:48:25 +08:00
# 建议替换为你自己的域名白名单
allowed-domains: localhost,127.0.0.1,delivery.vip,www.delivery.vip
2025-10-11 14:02:53 +08:00
2025-10-11 10:44:05 +08:00
# 防止XSS攻击
xss:
enabled: true
excludes: /system/notice
urlPatterns: /system/*,/monitor/*,/tool/*
2025-10-11 14:02:53 +08:00
# 代码生成
gen:
2025-10-13 09:48:25 +08:00
author: delivery
# 默认生成包路径(包名已改)
packageName: com.delivery.project.system
2025-10-11 14:02:53 +08:00
autoRemovePre: false
tablePrefix: sys_
2025-10-13 09:48:25 +08:00
allowOverwrite: false
minio:
endpoint: http://192.168.1.28:9000
accessKey: admin
secretKey: admin123
bucketName: delivery
2025-10-17 09:33:53 +08:00
public-read: true
upload:
base-dir: /data/upload/images
base-url: http://192.168.1.28/files