Merge branch '1.1.x'

This commit is contained in:
Dave Syer
2014-09-19 16:12:38 +01:00
3 changed files with 8 additions and 7 deletions

View File

@@ -77,6 +77,11 @@ class OnWebApplicationCondition extends SpringBootCondition {
.match("found web application StandardServletEnvironment");
}
if (context.getResourceLoader() instanceof WebApplicationContext) {
return ConditionOutcome
.match("found web application WebApplicationContext");
}
return ConditionOutcome.noMatch("not a web application");
}