注释类型 EnableWebExtension
-
@Retention(RUNTIME) @Target({TYPE,ANNOTATION_TYPE}) @Documented @Inherited @Import(WebExtensionBeanDefinitionRegistrar.class) public @interface EnableWebExtensionEnable annotation to extend the features of Spring Web- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
org.springframework.web.servlet.config.annotation.EnableWebMvc,org.springframework.web.reactive.config.EnableWebFlux
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 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.
-
-
-
元素详细资料
-
registerWebEndpointMappings
boolean registerWebEndpointMappings
Indicate whether The Spring Web registers the instances ofWebEndpointMappingthat source from Spring WebMVC, Spring WebFlux or Classical Servlet.- 返回:
trueas default- 另请参阅:
WebEndpointMapping,WebEndpointMappingRegistry
- 默认值:
- true
-
-
-
interceptHandlerMethods
boolean interceptHandlerMethods
Indicate whether Spring WebHandlerMethodshould be intercepted. Iftrue,HandlerMethodArgumentInterceptorandHandlerMethodInterceptorbeans will be initialized and then be invoked aroundHandlerMethodbeing executed.- 返回:
trueas default- 另请参阅:
HandlerMethodArgumentInterceptor,HandlerMethodInterceptor
- 默认值:
- true
-
-
-
publishEvents
boolean publishEvents
Indicate whether it publishes the Spring Web extension events:- 返回:
trueas default- 另请参阅:
WebEventPublisher,WebEndpointMappingsReadyEvent,HandlerMethodArgumentsResolvedEvent
- 默认值:
- true
-
-