Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
MCMS
Commits
3ddfb594
Commit
3ddfb594
authored
Sep 30, 2019
by
sgjj
Browse files
修复默认不跳主页的问题
parent
e705e844
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/config/WebConfig.java
View file @
3ddfb594
...
@@ -144,15 +144,15 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -144,15 +144,15 @@ public class WebConfig implements WebMvcConfigurer {
return
new
DefaultPointcutAdvisor
(
druidStatPointcut
(),
druidStatInterceptor
());
return
new
DefaultPointcutAdvisor
(
druidStatPointcut
(),
druidStatInterceptor
());
}
}
@Bean
//
@Bean
public
FilterRegistrationBean
xssFilterRegistration
()
{
//
public FilterRegistrationBean xssFilterRegistration() {
XSSEscapeFilter
xssFilter
=
new
XSSEscapeFilter
();
//
XSSEscapeFilter xssFilter = new XSSEscapeFilter();
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
(
xssFilter
);
//
FilterRegistrationBean registration = new FilterRegistrationBean(xssFilter);
xssFilter
.
excludes
.
add
(
".*file/upload.do"
);
//
xssFilter.excludes.add(".*file/upload.do");
xssFilter
.
excludes
.
add
(
".*/jsp/editor.do"
);
//
xssFilter.excludes.add(".*/jsp/editor.do");
registration
.
addUrlPatterns
(
"/*"
);
//
registration.addUrlPatterns("/*
*
");
return
registration
;
//
return registration;
}
//
}
/**
/**
* RequestContextListener注册
* RequestContextListener注册
...
...
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