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
cfa5e1fd
Commit
cfa5e1fd
authored
Aug 14, 2019
by
铭飞
Committed by
Gitee
Aug 14, 2019
Browse files
Options
Browse Files
Download
Plain Diff
!177 添加文件限制
Merge pull request !177 from 灰色DT/4.7.1
parents
347d5219
23ad3156
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
17 deletions
+16
-17
WebConfig.java
src/main/java/net/mingsoft/config/WebConfig.java
+11
-12
application.yml
src/main/resources/application.yml
+1
-1
about.htm
src/main/webapp/templets/1/default/about.htm
+1
-1
advice.htm
src/main/webapp/templets/1/default/advice.htm
+1
-1
case-list.htm
src/main/webapp/templets/1/default/case-list.htm
+1
-1
news-show.htm
src/main/webapp/templets/1/default/news-show.htm
+1
-1
No files found.
src/main/java/net/mingsoft/config/WebConfig.java
View file @
cfa5e1fd
...
@@ -3,6 +3,7 @@ package net.mingsoft.config;
...
@@ -3,6 +3,7 @@ package net.mingsoft.config;
import
java.io.File
;
import
java.io.File
;
import
org.springframework.aop.Advisor
;
import
org.springframework.aop.Advisor
;
import
net.mingsoft.basic.filter.XSSEscapeFilter
;
import
org.springframework.aop.support.DefaultPointcutAdvisor
;
import
org.springframework.aop.support.DefaultPointcutAdvisor
;
import
org.springframework.aop.support.JdkRegexpMethodPointcut
;
import
org.springframework.aop.support.JdkRegexpMethodPointcut
;
import
org.springframework.boot.web.servlet.FilterRegistrationBean
;
import
org.springframework.boot.web.servlet.FilterRegistrationBean
;
...
@@ -131,18 +132,16 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -131,18 +132,16 @@ public class WebConfig implements WebMvcConfigurer {
return
new
DefaultPointcutAdvisor
(
druidStatPointcut
(),
druidStatInterceptor
());
return
new
DefaultPointcutAdvisor
(
druidStatPointcut
(),
druidStatInterceptor
());
}
}
// /**
/**
// * xssFilter注册
* xssFilter注册
// */
*/
// @Bean
@Bean
// public FilterRegistrationBean xssFilterRegistration() {
public
FilterRegistrationBean
xssFilterRegistration
()
{
// XssFilter xssFilter = new XssFilter();
XSSEscapeFilter
xssFilter
=
new
XSSEscapeFilter
();
// xssFilter.setUrlExclusion(Arrays.asList("/static/"));
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
(
xssFilter
);
// FilterRegistrationBean registration = new
registration
.
addUrlPatterns
(
"/*"
);
// FilterRegistrationBean(xssFilter);
return
registration
;
// registration.addUrlPatterns("/*");
}
// return registration;
// }
/**
/**
* RequestContextListener注册
* RequestContextListener注册
...
...
src/main/resources/application.yml
View file @
cfa5e1fd
...
@@ -13,7 +13,7 @@ ms:
...
@@ -13,7 +13,7 @@ ms:
upload
:
upload
:
path
:
/upload
path
:
/upload
denied
:
exe
denied
:
.exe,.jsp
allowed
:
jpg
allowed
:
jpg
max-size
:
1
max-size
:
1
memory-size
:
4096
memory-size
:
4096
...
...
src/main/webapp/templets/1/default/about.htm
View file @
cfa5e1fd
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<body>
<body>
<
#
include
"
head
.
htm
"
/>
<
#
include
"
head
.
htm
"
/>
<div
class=
"ms-banner"
style=
"background:url({ms:global.host/}/{ms:global.style/}images/about_us.jpg) no-repeat center;"
>
<div
class=
"ms-banner"
style=
"background:url({ms:global.host/}/{ms:global.style/}
/
images/about_us.jpg) no-repeat center;"
>
<p
class=
"banner_tit_about animated fadeInLeft"
>
关于我们
</p>
<p
class=
"banner_tit_about animated fadeInLeft"
>
关于我们
</p>
<p
class=
"banner_tit_about_des animated fadeInRight"
>
About us
</p>
<p
class=
"banner_tit_about_des animated fadeInRight"
>
About us
</p>
</div>
</div>
...
...
src/main/webapp/templets/1/default/advice.htm
View file @
cfa5e1fd
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
</head>
</head>
<body>
<body>
<
#
include
"
head
.
htm
"
/>
<
#
include
"
head
.
htm
"
/>
<div
class=
"ms-banner"
style=
"background:url({ms:global.host/}/{ms:global.style/}images/talk_online.jpeg) no-repeat center;"
>
<div
class=
"ms-banner"
style=
"background:url({ms:global.host/}/{ms:global.style/}
/
images/talk_online.jpeg) no-repeat center;"
>
<p
class=
"banner_tit_other animated fadeInLeft"
>
在线留言
</p>
<p
class=
"banner_tit_other animated fadeInLeft"
>
在线留言
</p>
<p
class=
"banner_tit_other_des animated fadeInRight"
>
Talk online
</p>
<p
class=
"banner_tit_other_des animated fadeInRight"
>
Talk online
</p>
</div>
</div>
...
...
src/main/webapp/templets/1/default/case-list.htm
View file @
cfa5e1fd
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<body>
<body>
<
#
include
"
head
.
htm
"
/>
<
#
include
"
head
.
htm
"
/>
<div
class=
"ms-banner"
style=
"background:url({ms:global.host/}/{ms:global.style/}images/00.png) no-repeat center;"
>
<div
class=
"ms-banner"
style=
"background:url({ms:global.host/}/{ms:global.style/}
/
images/00.png) no-repeat center;"
>
<p
class=
"banner_tit_other animated fadeInLeft"
>
案
例
</p>
<p
class=
"banner_tit_other animated fadeInLeft"
>
案
例
</p>
<p
class=
"banner_tit_other_des animated fadeInRight"
>
Case list
</p>
<p
class=
"banner_tit_other_des animated fadeInRight"
>
Case list
</p>
</div>
</div>
...
...
src/main/webapp/templets/1/default/news-show.htm
View file @
cfa5e1fd
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<body>
<body>
<
#
include
"
head
.
htm
"
>
<
#
include
"
head
.
htm
"
>
<div
class=
"ms-banner"
style=
"background:url({ms:global.host/}/{ms:global.style/}images/news2.png) no-repeat center;"
>
<div
class=
"ms-banner"
style=
"background:url({ms:global.host/}/{ms:global.style/}
/
images/news2.png) no-repeat center;"
>
<p
class=
"banner_tit_other animated fadeInLeft"
>
公司动态
</p>
<p
class=
"banner_tit_other animated fadeInLeft"
>
公司动态
</p>
<p
class=
"banner_tit_other_des animated fadeInRight"
>
Our company
</p>
<p
class=
"banner_tit_other_des animated fadeInRight"
>
Our company
</p>
...
...
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