Merge branch '2.1.x'

Closes gh-18022
This commit is contained in:
Phillip Webb 2019-08-30 14:53:21 -07:00
commit ddbc1e5b0a
1 changed files with 2 additions and 1 deletions

View File

@ -7254,7 +7254,8 @@ Resources can be specified by using the usual Spring conventions, as shown in th
[[boot-features-web-application-conditions]] [[boot-features-web-application-conditions]]
==== Web Application Conditions ==== Web Application Conditions
The `@ConditionalOnWebApplication` and `@ConditionalOnNotWebApplication` annotations let configuration be included depending on whether the application is a "`web application`". The `@ConditionalOnWebApplication` and `@ConditionalOnNotWebApplication` annotations let configuration be included depending on whether the application is a "`web application`".
A web application is any application that uses a Spring `WebApplicationContext`, defines a `session` scope, or has a `StandardServletEnvironment`. A servlet based web application is any application that uses a Spring `WebApplicationContext`, defines a `session` scope, or has a `StandardServletEnvironment`.
A reactive web application is any application that uses a `ReactiveWebApplicationContext`, defines a `session` scope, or has a `ConfigurableReactiveWebEnvironment`.