Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
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
DEMO
spring-boot
Commits
66f8279f
Commit
66f8279f
authored
Jan 22, 2018
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
77596fa8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
howto.adoc
...oot-project/spring-boot-docs/src/main/asciidoc/howto.adoc
+1
-0
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+10
-10
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
66f8279f
...
@@ -619,6 +619,7 @@ make sure to check the
...
@@ -619,6 +619,7 @@ make sure to check the
section.
section.
[[howto-disable-registration-of-a-servlet-or-filter]]
[[howto-disable-registration-of-a-servlet-or-filter]]
===== Disable Registration of a Servlet or Filter
===== Disable Registration of a Servlet or Filter
As <<howto-add-a-servlet-filter-or-listener-as-spring-bean,described earlier>>, any
As <<howto-add-a-servlet-filter-or-listener-as-spring-bean,described earlier>>, any
...
...
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
66f8279f
...
@@ -2756,11 +2756,11 @@ If convention-based mapping is not flexible enough, you can use the
...
@@ -2756,11 +2756,11 @@ If convention-based mapping is not flexible enough, you can use the
`ServletListenerRegistrationBean` classes for complete control.
`ServletListenerRegistrationBean` classes for complete control.
Spring Boot ships with many auto-configurations that can define Servlet filter beans.
Spring Boot ships with many auto-configurations that can define Servlet filter beans.
Depending on the outcome of these auto-configuration conditions, Spring Boot
Depending on the outcome of these auto-configuration conditions, Spring Boot
can configure
can configure
predefined Servlet filters in in your application.
predefined Servlet filters in in your application.
Here are a few examples of Servlet filters and their respective order (lower order
Here are a few examples of Servlet filters and their respective order (lower order
value
value
means higher precedence):
means higher precedence):
|===
|===
| Servlet Filter | Order
| Servlet Filter | Order
...
@@ -2780,12 +2780,12 @@ value means higher precedence):
...
@@ -2780,12 +2780,12 @@ value means higher precedence):
It is usually safe to leave filter beans unordered.
It is usually safe to leave filter beans unordered.
If a specific order is required, you should avoid
If a specific order is required, you should avoid
configuring a Servlet filter that reads
configuring a Servlet filter that reads the request body at
the request body at `Ordered.HIGHEST_PRECEDENCE`, since it might go against the character
`Ordered.HIGHEST_PRECEDENCE`, since it might go against the character encoding
encoding configuration of your application. Servlet filters should be configured at less
configuration of your application. Servlet filters should be configured
or equal than `FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER` if they wrap the
at less or equal than `FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER`
servlet request.
if they wrap the servlet request.
[[boot-features-embedded-container-context-initializer]]
[[boot-features-embedded-container-context-initializer]]
...
...
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