Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jeecg-boot
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
jeecg-boot
Commits
5b82a1aa
Unverified
Commit
5b82a1aa
authored
Dec 24, 2020
by
JEECG开源社区
Committed by
GitHub
Dec 24, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1967 from tank99tank/char_400
SpringBoot 请求参数包含 [] 特殊符号 返回400状态
parents
3cb88452
94c06104
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/JeecgSystemApplication.java
+15
-1
No files found.
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/JeecgSystemApplication.java
View file @
5b82a1aa
...
...
@@ -2,11 +2,13 @@ package org.jeecg;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.catalina.Context
;
import
org.apache.catalina.connector.Connector
;
import
org.apache.tomcat.util.scan.StandardJarScanner
;
import
org.jeecg.common.util.oConvertUtils
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer
;
import
org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
;
import
org.springframework.boot.web.servlet.support.SpringBootServletInitializer
;
import
org.springframework.context.ConfigurableApplicationContext
;
...
...
@@ -48,11 +50,22 @@ public class JeecgSystemApplication extends SpringBootServletInitializer {
*/
@Bean
public
TomcatServletWebServerFactory
tomcatFactory
()
{
return
new
TomcatServletWebServerFactory
()
{
TomcatServletWebServerFactory
factory
=
new
TomcatServletWebServerFactory
(){
@Override
protected
void
postProcessContext
(
Context
context
)
{
((
StandardJarScanner
)
context
.
getJarScanner
()).
setScanManifest
(
false
);
}
};
factory
.
addConnectorCustomizers
(
new
TomcatConnectorCustomizer
()
{
@Override
public
void
customize
(
Connector
connector
)
{
connector
.
setProperty
(
"relaxedPathChars"
,
"\"<>[\\]^`{|}"
);
connector
.
setProperty
(
"relaxedQueryChars"
,
"\"<>[\\]^`{|}"
);
}
});
return
factory
;
}
}
\ No newline at end of file
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