Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
git test
MCMS
Commits
f54fca30
Commit
f54fca30
authored
2 years ago
by
msgroup
Committed by
zhouyk
2 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: 配置规范
parent
2add41d7
master
5.2.10
5.2.11
5.3.0
5.3.1
5.3.2
5.3.3
5.3.4
5.3.5
5.3.6
5.4.0
5.4.1
5.4.2
5.4.3
5.4.4
5.4.5
5.4.4
5.4.3
5.4.2
5.4.1
5.4.0
5.3.6
5.3.5
5.3.4
5.3.3
5.3.1
5.2.11
5.2.10
5.2.9
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/net/mingsoft/config/WebConfig.java
+3
-3
src/main/java/net/mingsoft/config/WebConfig.java
src/main/resources/application.yml
+5
-4
src/main/resources/application.yml
with
8 additions
and
7 deletions
+8
-7
src/main/java/net/mingsoft/config/WebConfig.java
+
3
-
3
View file @
f54fca30
...
...
@@ -127,9 +127,9 @@ public class WebConfig implements WebMvcConfigurer {
//XSS过滤器
@Bean
public
FilterRegistrationBean
xssFilterRegistration
(
@Value
(
"${ms.xss.
xssE
nable:false}"
)
boolean
xssEnable
,
@Value
(
"${ms.xss.filter
U
rl}"
)
String
filterUrl
,
@Value
(
"${ms.xss.exclude
U
rl}"
)
String
excludeUrl
)
{
public
FilterRegistrationBean
xssFilterRegistration
(
@Value
(
"${ms.xss.
e
nable:false}"
)
boolean
xssEnable
,
@Value
(
"${ms.xss.filter
-u
rl}
:''
"
)
String
filterUrl
,
@Value
(
"${ms.xss.exclude
-u
rl}
:''
"
)
String
excludeUrl
)
{
XSSEscapeFilter
xssFilter
=
new
XSSEscapeFilter
();
Map
<
String
,
String
>
initParameters
=
new
HashMap
();
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
();
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application.yml
+
5
-
4
View file @
f54fca30
server
:
port
:
8080
servlet.session.timeout
:
P0DT60M0S
#D天H小时M分钟S秒,字符T是紧跟在时分秒之前的,每个单位都必须由数字开始,且时分秒顺序不能乱
error
:
include-exception
:
true
include-message
:
always
servlet
:
context-path
:
/
#项目名称
session.timeout
:
P0DT60M0S
#D天H小时M分钟S秒,字符T是紧跟在时分秒之前的,每个单位都必须由数字开始,且时分秒顺序不能乱
encoding
:
force
:
true
charset
:
utf-8
...
...
@@ -21,9 +22,9 @@ logging:
ms
:
xss
:
xssE
nable
:
true
#xss过滤器的开关
filter
U
rl
:
/**
#过滤的url,多个用逗号分开
exclude
U
rl
:
/static/**,/template/**,/file/upload.do,/static/plugins/ueditor/1.4.3.3/jsp/editor.do
#排除的url,多个用逗号分开
e
nable
:
true
#xss过滤器的开关
filter
-u
rl
:
/**
#过滤的url,多个用逗号分开
exclude
-u
rl
:
/static/**,/template/**,/file/upload.do,/static/plugins/ueditor/1.4.3.3/jsp/editor.do
#排除的url,多个用逗号分开
# mstore-url: http://store.i.mingsoft.net
# mstore-host: store.i.mingsoft.net
# shiro-key: #16位长度,不填写默认随机生成
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help