注释类型 EnableWebMvcExtension
-
@Retention(RUNTIME) @Target(TYPE) @Documented @Import({WebMvcExtensionBeanDefinitionRegistrar.class,WebMvcExtensionConfiguration.class}) @EnableWebExtension public @interface EnableWebMvcExtension
Enable annotation to extend the features of Spring WebMVC- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
- 另请参阅:
EnableWebMvc
,EnableWebExtension
,WebMvcExtensionBeanDefinitionRegistrar
,WebMvcExtensionConfiguration
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 boolean
interceptHandlerMethods
Indicate whether Spring WebHandlerMethod
should be intercepted.boolean
publishEvents
Indicate whether it publishes the Spring Web extension events:HandlerMethodArgumentsResolvedEvent
(if enabled
)WebEndpointMappingsReadyEvent
(if enabled
)java.lang.Class<? extends org.springframework.web.servlet.HandlerInterceptor>[]
registerHandlerInterceptors
Indicate whether theInterceptorRegistry
registers the beans ofHandlerInterceptor
by the specified typesboolean
registerWebEndpointMappings
Indicate whether The Spring Web registers the instances ofWebEndpointMapping
that source from Spring WebMVC, Spring WebFlux or Classical Servlet.boolean
storeRequestBodyArgument
Indicate that Stores theargument
ofHandlerMethod
that annotatedRequestBody
boolean
storeResponseBodyReturnValue
Stores the return value ofHandlerMethod
before write as theResponseBody
-
-
-
元素详细资料
-
registerWebEndpointMappings
@AliasFor(annotation=io.microsphere.spring.web.annotation.EnableWebExtension.class) boolean registerWebEndpointMappings
Indicate whether The Spring Web registers the instances ofWebEndpointMapping
that source from Spring WebMVC, Spring WebFlux or Classical Servlet.- 返回:
true
as default- 另请参阅:
WebEndpointMapping
,WebEndpointMappingRegistry
,WebEndpointMappingRegistrar
- 默认值:
- true
-
-
-
interceptHandlerMethods
@AliasFor(annotation=io.microsphere.spring.web.annotation.EnableWebExtension.class) boolean interceptHandlerMethods
Indicate whether Spring WebHandlerMethod
should be intercepted. Iftrue
,HandlerMethodArgumentInterceptor
andHandlerMethodInterceptor
beans will be initialized and then be invoked aroundHandlerMethod
being executed.- 返回:
true
as default- 另请参阅:
HandlerMethodArgumentInterceptor
,HandlerMethodInterceptor
- 默认值:
- true
-
-
-
publishEvents
@AliasFor(annotation=io.microsphere.spring.web.annotation.EnableWebExtension.class) boolean publishEvents
Indicate whether it publishes the Spring Web extension events:- 返回:
true
as default- 另请参阅:
WebEventPublisher
,WebEndpointMappingsReadyEvent
,HandlerMethodArgumentsResolvedEvent
- 默认值:
- true
-
-
-
registerHandlerInterceptors
java.lang.Class<? extends org.springframework.web.servlet.HandlerInterceptor>[] registerHandlerInterceptors
Indicate whether theInterceptorRegistry
registers the beans ofHandlerInterceptor
by the specified types- 返回:
false
as default- 另请参阅:
WebMvcConfigurer.addInterceptors(InterceptorRegistry)
,InterceptorRegistry
- 默认值:
- {}
-
-
-
storeRequestBodyArgument
boolean storeRequestBodyArgument
Indicate that Stores theargument
ofHandlerMethod
that annotatedRequestBody
- 返回:
false
as default- 另请参阅:
RequestBody
,StoringRequestBodyArgumentAdvice
,HandlerMethod
- 默认值:
- false
-
-