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.EnableWebMvc
org.springframework.web.reactive.config.EnableWebFlux
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Indicate whether Spring WebHandlerMethod
should be intercepted.boolean
Indicate whether it publishes the Spring Web extension events:HandlerMethodArgumentsResolvedEvent
(if enabled
)WebEndpointMappingsReadyEvent
(if enabled
)boolean
Indicate whether The Spring Web registers the instances ofWebEndpointMapping
that source from Spring WebMVC, Spring WebFlux or Classical Servlet.
-
Element Details
-
registerWebEndpointMappings
boolean registerWebEndpointMappingsIndicate whether The Spring Web registers the instances ofWebEndpointMapping
that source from Spring WebMVC, Spring WebFlux or Classical Servlet.- Returns:
true
as default- See Also:
- Default:
- true
-
interceptHandlerMethods
boolean interceptHandlerMethodsIndicate whether Spring WebHandlerMethod
should be intercepted. Iftrue
,HandlerMethodArgumentInterceptor
andHandlerMethodInterceptor
beans will be initialized and then be invoked aroundHandlerMethod
being executed.- Returns:
true
as default- See Also:
- Default:
- true
-
publishEvents
boolean publishEventsIndicate whether it publishes the Spring Web extension events:- Returns:
true
as default- See Also:
- Default:
- true
-