kongzy
2023-12-08 ca5445257b1fdeceddf3fcc2dea18c442023aeb7
assess-admin/src/main/resources/application.yml
@@ -7,9 +7,9 @@
    multipart:
      enabled: true
      # 单个文件大小
      max-file-size: 10MB
      max-file-size: 20MB
      # 设置总上传的文件大小
      max-request-size: 20MB
      max-request-size: 100MB
  mvc:
    pathmatch:
      matching-strategy: ant_path_matcher
@@ -19,16 +19,6 @@
  servlet:
    context-path: /api
#shiro配置
#shiro:
#  sessionManager:
#    sessionIdCookieEnabled: true
#    sessionIdUrlRewritingEnabled: true
#  unauthorizedUrl: /unauthorizedurl
#  web:
#    enabled: true
#  successUrl: /index
#  loginUrl: /account/login
# 用户配置
user:
@@ -38,6 +28,14 @@
image:
  root_path: upload
  upload_image: upload/images
  upload_file: upload/documents
  upload_path: upload
# 防止XSS攻击
xss:
  # 过滤开关
  enabled: true
  # 排除链接(多个用逗号分隔)
  excludes: /system/notice
  # 匹配链接
  urlPatterns: /system/*,/monitor/*,/tool/*