Commit dbccb705 authored by Phillip Webb's avatar Phillip Webb

Clarify "Web Application Conditions" documentation

Update the reference documentation so that "Web Application Conditions"
also covers reactive contexts.

Closes gh-18005
parent 5938ca78
...@@ -6931,7 +6931,8 @@ Resources can be specified by using the usual Spring conventions, as shown in th ...@@ -6931,7 +6931,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`.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment