mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 06:29:20 +08:00
98 lines
2.5 KiB
YAML
98 lines
2.5 KiB
YAML
server:
|
|
port: 8080
|
|
|
|
spring:
|
|
datasource:
|
|
url: "jdbc:mysql://jumper:3306/ecom_dmb_dev?characterEncoding=utf-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true"
|
|
username: ecom_dmb_dev
|
|
password: ecom_dmb_dev
|
|
hikari:
|
|
maximum-pool-size: 10
|
|
minimum-idle: 5
|
|
connection-timeout: 30000
|
|
idle-timeout: 600000
|
|
max-lifetime: 30000
|
|
jackson:
|
|
time-zone: Asia/Shanghai
|
|
# 配置404错误处理 - 注释掉,避免影响Swagger文档访问
|
|
# mvc:
|
|
# throw-exception-if-no-handler-found: true
|
|
web:
|
|
resources:
|
|
add-mappings: true
|
|
# 文件上传配置
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 50MB
|
|
max-request-size: 100MB
|
|
enabled: true
|
|
|
|
# JWT配置
|
|
jwt:
|
|
secret: your-secret-key-here-must-be-at-least-64-bytes-long-for-hs512-algorithm-security
|
|
expiration: 86400
|
|
|
|
# mybatis-plus配置
|
|
mybatis-plus:
|
|
# mapper xml文件位置
|
|
mapper-locations: classpath:mapper/**/*.xml
|
|
configuration:
|
|
# 驼峰命名转换
|
|
map-underscore-to-camel-case: true
|
|
# 打印SQL日志
|
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
|
# knife4j配置
|
|
springdoc:
|
|
swagger-ui:
|
|
path: /swagger-ui.html
|
|
api-docs:
|
|
path: /v3/api-docs
|
|
packages-to-scan: top.xyquan.ecomdmbbackend.modules
|
|
# 按模块分组配置
|
|
group-configs:
|
|
- group: "系统模块"
|
|
paths-to-match:
|
|
- "/auth/**"
|
|
- "/menu/**"
|
|
- "/permission/**"
|
|
- "/user/**"
|
|
packages-to-scan: "top.xyquan.ecomdmbbackend.modules.sys.controller"
|
|
- group: "组织模块"
|
|
paths-to-match:
|
|
- "/company/**"
|
|
- "/company-menu/**"
|
|
- "/department/**"
|
|
- "/position/**"
|
|
packages-to-scan: "top.xyquan.ecomdmbbackend.modules.org.controller"
|
|
- group: "订阅模块"
|
|
paths-to-match:
|
|
- "/plan/**"
|
|
- "/plan-pricing/**"
|
|
- "/subscription/**"
|
|
packages-to-scan: "top.xyquan.ecomdmbbackend.modules.sub.controller"
|
|
- group: "媒体模块"
|
|
paths-to-match:
|
|
- "/media/image/**"
|
|
- "/media/file/**"
|
|
packages-to-scan: "top.xyquan.ecomdmbbackend.modules.media.controller"
|
|
|
|
# knife4j的增强配置
|
|
knife4j:
|
|
enable: true
|
|
# 开启分组功能
|
|
enable-group: true
|
|
# 开启搜索功能
|
|
enable-search: true
|
|
# 开启footer功能
|
|
enable-footer: false
|
|
# 开启footer自定义
|
|
enable-footer-custom: false
|
|
|
|
# 日志配置
|
|
logging:
|
|
level:
|
|
top.xyquan.ecomdmbbackend: DEBUG
|
|
org.springframework.security: DEBUG
|
|
org.springframework.web: DEBUG
|