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
09ee994b
"jshERP-web/vscode:/vscode.git/clone" did not exist on "de1ee0c8c4a06cc24afc8748f7fbd04c20aa8c90"
Commit
09ee994b
authored
Nov 14, 2022
by
mingsoft
Browse files
up::5.2.10
Signed-off-by:
mingsoft
<
killfen@126.com
>
parent
c86c7b92
Changes
23
Show whitespace changes
Inline
Side-by-side
src/main/java/net/mingsoft/cms/entity/HistoryLogEntity.java
View file @
09ee994b
...
@@ -22,11 +22,7 @@
...
@@ -22,11 +22,7 @@
package
net.mingsoft.cms.entity
;
package
net.mingsoft.cms.entity
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
net.mingsoft.base.entity.BaseEntity
;
import
net.mingsoft.base.entity.BaseEntity
;
import
java.util.Date
;
/**
/**
* 文章浏览记录实体
* 文章浏览记录实体
* @author 铭飞开发团队
* @author 铭飞开发团队
...
...
src/main/java/net/mingsoft/cms/util/CmsParserUtil.java
View file @
09ee994b
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
package
net.mingsoft.cms.util
;
package
net.mingsoft.cms.util
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.io.FileUtil
;
import
cn.hutool.core.io.FileUtil
;
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.map.MapUtil
;
import
cn.hutool.core.util.PageUtil
;
import
cn.hutool.core.util.PageUtil
;
...
...
src/main/java/net/mingsoft/config/WebConfig.java
View file @
09ee994b
...
@@ -40,7 +40,10 @@ import org.springframework.core.Ordered;
...
@@ -40,7 +40,10 @@ import org.springframework.core.Ordered;
import
org.springframework.http.converter.HttpMessageConverter
;
import
org.springframework.http.converter.HttpMessageConverter
;
import
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
;
import
org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
;
import
org.springframework.web.context.request.RequestContextListener
;
import
org.springframework.web.context.request.RequestContextListener
;
import
org.springframework.web.servlet.config.annotation.*
;
import
org.springframework.web.servlet.config.annotation.InterceptorRegistry
;
import
org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry
;
import
org.springframework.web.servlet.config.annotation.ViewControllerRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.io.File
;
import
java.io.File
;
...
@@ -95,7 +98,7 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -95,7 +98,7 @@ public class WebConfig implements WebMvcConfigurer {
String
uploadMapping
=
MSProperties
.
upload
.
mapping
;
String
uploadMapping
=
MSProperties
.
upload
.
mapping
;
String
uploadFolderPath
=
MSProperties
.
upload
.
path
;
String
uploadFolderPath
=
MSProperties
.
upload
.
path
;
String
template
=
MSProperties
.
upload
.
template
;
String
template
=
MSProperties
.
upload
.
template
;
String
htmlDir
=
MSProperties
.
D
iy
Properties
.
htmlDir
;
String
htmlDir
=
MSProperties
.
d
iy
.
htmlDir
;
// 上传路径映射 这里的映射不能使用File.separator Windows会存在映射问题
// 上传路径映射 这里的映射不能使用File.separator Windows会存在映射问题
registry
.
addResourceHandler
(
uploadMapping
).
addResourceLocations
(
"/"
+
uploadFolderPath
+
"/"
,
"file:"
+
uploadFolderPath
+
"/"
);
registry
.
addResourceHandler
(
uploadMapping
).
addResourceLocations
(
"/"
+
uploadFolderPath
+
"/"
,
"file:"
+
uploadFolderPath
+
"/"
);
registry
.
addResourceHandler
(
"/"
+
template
+
"/**"
).
addResourceLocations
(
"/"
+
template
+
"/"
,
"file:"
+
template
+
"/"
);
registry
.
addResourceHandler
(
"/"
+
template
+
"/**"
).
addResourceLocations
(
"/"
+
template
+
"/"
,
"file:"
+
template
+
"/"
);
...
@@ -127,9 +130,9 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -127,9 +130,9 @@ public class WebConfig implements WebMvcConfigurer {
//XSS过滤器
//XSS过滤器
@Bean
@Bean
public
FilterRegistrationBean
xssFilterRegistration
(
@Value
(
"${ms.xss.enable:
fals
e}"
)
boolean
xssEnable
,
public
FilterRegistrationBean
xssFilterRegistration
(
@Value
(
"${ms.xss.enable:
tru
e}"
)
boolean
xssEnable
,
@Value
(
"${ms.xss.filter-url}
:''
"
)
String
filterUrl
,
@Value
(
"${ms.xss.filter-url}"
)
String
filterUrl
,
@Value
(
"${ms.xss.exclude-url}
:''
"
)
String
excludeUrl
)
{
@Value
(
"${ms.xss.exclude-url}"
)
String
excludeUrl
)
{
XSSEscapeFilter
xssFilter
=
new
XSSEscapeFilter
();
XSSEscapeFilter
xssFilter
=
new
XSSEscapeFilter
();
Map
<
String
,
String
>
initParameters
=
new
HashMap
();
Map
<
String
,
String
>
initParameters
=
new
HashMap
();
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
();
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
();
...
...
Prev
1
2
Next
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