Annotation Interface EnableWebExtension
@Retention(RUNTIME)
@Target({TYPE,ANNOTATION_TYPE})
@Documented
@Inherited
@Import(WebExtensionBeanDefinitionRegistrar.class)
public @interface EnableWebExtension
Enable annotation to extend the features of Spring Web
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
-
org.springframework.web.servlet.config.annotation.EnableWebMvcorg.springframework.web.reactive.config.EnableWebFlux
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicate whether Spring WebHandlerMethodshould be intercepted.booleanIndicate whether it publishes the Spring Web extension events:HandlerMethodArgumentsResolvedEvent(if enabled)WebEndpointMappingsReadyEvent(if enabled)booleanIndicate whether The Spring Web registers the instances ofWebEndpointMappingthat source from Spring WebMVC, Spring WebFlux or Classical Servlet.
-
Element Details
-
registerWebEndpointMappings
boolean registerWebEndpointMappingsIndicate whether The Spring Web registers the instances ofWebEndpointMappingthat source from Spring WebMVC, Spring WebFlux or Classical Servlet.- Returns:
trueas default- See Also:
- Default:
- true
-
interceptHandlerMethods
boolean interceptHandlerMethodsIndicate whether Spring WebHandlerMethodshould be intercepted. Iftrue,HandlerMethodArgumentInterceptorandHandlerMethodInterceptorbeans will be initialized and then be invoked aroundHandlerMethodbeing executed.- Returns:
trueas default- See Also:
- Default:
- true
-
publishEvents
boolean publishEventsIndicate whether it publishes the Spring Web extension events:- Returns:
trueas default- See Also:
- Default:
- true
-