From 41c7e0ebcdaa27eef33c86f2c455bee0df9a38d3 Mon Sep 17 00:00:00 2001 From: kongzy <kongzy> Date: 星期四, 07 十一月 2024 10:50:59 +0800 Subject: [PATCH] change captcha --- exam-admin/src/main/resources/application.yml | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/exam-admin/src/main/resources/application.yml b/exam-admin/src/main/resources/application.yml index 24ef7cc..e406ad7 100644 --- a/exam-admin/src/main/resources/application.yml +++ b/exam-admin/src/main/resources/application.yml @@ -2,14 +2,14 @@ application: name: train_exam profiles: - active: dev + active: guotai servlet: multipart: enabled: true # 单个文件大小 - max-file-size: 10MB + max-file-size: 100MB # 设置总上传的文件大小 - max-request-size: 20MB + max-request-size: 200MB mvc: pathmatch: matching-strategy: ant_path_matcher @@ -18,6 +18,10 @@ port: 8082 servlet: context-path: /api + tomcat: + threads: + min-spare: 10 + max: 200 # 用户配置 @@ -36,3 +40,13 @@ #获取ip地址开关 addressEnabled: false + +# 防止XSS攻击 +xss: + # 过滤开关 + enabled: true + # 排除链接(多个用逗号分隔) + excludes: + # 匹配链接 + urlPatterns: /system/*,/manage/* + -- Gitblit v1.9.2