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
9e238aa6
Commit
9e238aa6
authored
Aug 31, 2019
by
铭飞
Committed by
Gitee
Aug 31, 2019
Browse files
Options
Browse Files
Download
Plain Diff
!184 xxs
Merge pull request !184 from 灰色DT/4.7.2
parents
aaf420b6
212b6b15
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 @
9e238aa6
...
@@ -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 @
9e238aa6
...
@@ -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