Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cms_sys
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
西魏
cms_sys
Commits
212b6b15
Commit
212b6b15
authored
Aug 30, 2019
by
sgjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxs
parent
c8be6e2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
WebConfig.java
src/main/java/net/mingsoft/config/WebConfig.java
+10
-10
application.yml
src/main/resources/application.yml
+2
-1
No files found.
src/main/java/net/mingsoft/config/WebConfig.java
View file @
212b6b15
...
@@ -150,16 +150,16 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -150,16 +150,16 @@ public class WebConfig implements WebMvcConfigurer {
return
new
DefaultPointcutAdvisor
(
druidStatPointcut
(),
druidStatInterceptor
());
return
new
DefaultPointcutAdvisor
(
druidStatPointcut
(),
druidStatInterceptor
());
}
}
// /**
@Bean
// * xssFilter注册
public
FilterRegistrationBean
xssFilterRegistration
()
{
// */
XSSEscapeFilter
xssFilter
=
new
XSSEscapeFilter
();
// @Bean
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
(
xssFilter
);
// public FilterRegistrationBean xssFilterRegistration() {
xssFilter
.
excludes
.
add
(
".*file/upload.do"
);
// XSSEscapeFilter xssFilter = new XSSEscapeFilter(
);
xssFilter
.
excludes
.
add
(
".*/jsp/editor.do"
);
// FilterRegistrationBean registration = new FilterRegistrationBean(xssFilter
);
registration
.
addUrlPatterns
(
"/*"
);
// registration.addUrlPatterns("/*");
//
return registration;
return
registration
;
//
}
}
/**
/**
* RequestContextListener注册
* RequestContextListener注册
...
...
src/main/resources/application.yml
View file @
212b6b15
...
@@ -12,7 +12,8 @@ ms:
...
@@ -12,7 +12,8 @@ ms:
view-path
:
/WEB-INF/manager
view-path
:
/WEB-INF/manager
upload
:
upload
:
path
:
/upload
path
:
/upload
mapping
:
/upload/**
denied
:
.exe,.jsp
denied
:
.exe,.jsp
allowed
:
jpg
allowed
:
jpg
max-size
:
1
max-size
:
1
...
...
Write
Preview
Markdown
is supported
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