From a39e023677a9c5c68ba3b6577f0d7da24b9dc65e Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: Wed, 30 Oct 2024 11:14:08 +0800
Subject: [PATCH] update
---
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