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
82b839e4
Commit
82b839e4
authored
Mar 16, 2017
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish OnWebApplicationCondition message
parent
102da8b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
OnWebApplicationCondition.java
...ot/autoconfigure/condition/OnWebApplicationCondition.java
+3
-3
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnWebApplicationCondition.java
View file @
82b839e4
...
...
@@ -27,8 +27,8 @@ import org.springframework.core.annotation.Order;
import
org.springframework.core.type.AnnotatedTypeMetadata
;
import
org.springframework.util.ClassUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.context.ConfigurableWebEnvironment
;
import
org.springframework.web.context.WebApplicationContext
;
import
org.springframework.web.context.support.StandardServletEnvironment
;
/**
* {@link Condition} that checks for the presence or absence of
...
...
@@ -102,9 +102,9 @@ class OnWebApplicationCondition extends SpringBootCondition {
return
ConditionOutcome
.
match
(
message
.
foundExactly
(
"'session' scope"
));
}
}
if
(
context
.
getEnvironment
()
instanceof
StandardServlet
Environment
)
{
if
(
context
.
getEnvironment
()
instanceof
ConfigurableWeb
Environment
)
{
return
ConditionOutcome
.
match
(
message
.
foundExactly
(
"
StandardServlet
Environment"
));
.
match
(
message
.
foundExactly
(
"
ConfigurableWeb
Environment"
));
}
if
(
context
.
getResourceLoader
()
instanceof
WebApplicationContext
)
{
return
ConditionOutcome
.
match
(
message
.
foundExactly
(
"WebApplicationContext"
));
...
...
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