Annotation Type EnableWebExtension
-
@Retention(RUNTIME) @Target({TYPE,ANNOTATION_TYPE}) @Documented @Inherited @Import(WebExtensionBeanDefinitionRegistrar.class) public @interface EnableWebExtensionEnable annotation to extend the features of Spring Web- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
org.springframework.web.servlet.config.annotation.EnableWebMvc,org.springframework.web.reactive.config.EnableWebFlux
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleaninterceptHandlerMethodsIndicate whether Spring WebHandlerMethodshould be intercepted.booleanpublishEventsIndicate whether it publishes the Spring Web extension events:HandlerMethodArgumentsResolvedEvent(if enabled)WebEndpointMappingsReadyEvent(if enabled)booleanregisterWebEndpointMappingsIndicate whether The Spring Web registers the instances ofWebEndpointMappingthat source from Spring WebMVC, Spring WebFlux or Classical Servlet.RequestContextStrategyrequestContextStrategyIndicate where theRequestAttributesstores.
-
-
-
Element Detail
-
registerWebEndpointMappings
boolean registerWebEndpointMappings
Indicate whether The Spring Web registers the instances ofWebEndpointMappingthat source from Spring WebMVC, Spring WebFlux or Classical Servlet.- Returns:
trueas default- See Also:
WebEndpointMapping,WebEndpointMappingResolver,WebEndpointMappingRegistry,WebEndpointMappingFactory,WebEndpointMappingFilter
- Default:
- true
-
-
-
interceptHandlerMethods
boolean interceptHandlerMethods
Indicate whether Spring WebHandlerMethodshould be intercepted. Iftrue,HandlerMethodArgumentInterceptorandHandlerMethodInterceptorbeans will be initialized and then be invoked aroundHandlerMethodbeing executed.- Returns:
trueas default- See Also:
HandlerMethodArgumentInterceptor,HandlerMethodInterceptor
- Default:
- true
-
-
-
publishEvents
boolean publishEvents
Indicate whether it publishes the Spring Web extension events:- Returns:
trueas default- See Also:
WebEventPublisher,WebEndpointMappingsReadyEvent,HandlerMethodArgumentsResolvedEvent
- Default:
- true
-
-
-
requestContextStrategy
RequestContextStrategy requestContextStrategy
Indicate where theRequestAttributesstores.- Returns:
RequestContextStrategy.DEFAULTas default- See Also:
RequestAttributes,RequestContextHolder,RequestContextStrategy
- Default:
- io.microsphere.spring.web.util.RequestContextStrategy.DEFAULT
-
-