Annotation Type EnableWebMvcExtension
-
@Retention(RUNTIME) @Target(TYPE) @Documented @Import({WebMvcExtensionBeanDefinitionRegistrar.class,WebMvcExtensionConfiguration.class}) @EnableWebExtension public @interface EnableWebMvcExtension
Enable annotation to extend the features of Spring WebMVC- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
EnableWebMvc
,EnableWebExtension
,WebMvcExtensionBeanDefinitionRegistrar
,WebMvcExtensionConfiguration
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends org.springframework.web.servlet.HandlerInterceptor>[]
handlerInterceptors
SpecifyHandlerInterceptor
types or its inherited types to register intoInterceptorRegistry
.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
)boolean
registerHandlerInterceptors
Indicate whether theInterceptorRegistry
registers the beans ofHandlerInterceptor
.boolean
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
-
-
-
Element Detail
-
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.- Returns:
true
as default- See Also:
WebEndpointMapping
,WebEndpointMappingRegistry
,WebEndpointMappingRegistrar
- Default:
- 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.- Returns:
true
as default- See Also:
HandlerMethodArgumentInterceptor
,HandlerMethodInterceptor
- Default:
- true
-
-
-
publishEvents
@AliasFor(annotation=io.microsphere.spring.web.annotation.EnableWebExtension.class) boolean publishEvents
Indicate whether it publishes the Spring Web extension events:- Returns:
true
as default- See Also:
WebEventPublisher
,WebEndpointMappingsReadyEvent
,HandlerMethodArgumentsResolvedEvent
- Default:
- true
-
-
-
registerHandlerInterceptors
boolean registerHandlerInterceptors
Indicate whether theInterceptorRegistry
registers the beans ofHandlerInterceptor
. If it specifiestrue
,handlerInterceptors()
method will not work anymore.- Returns:
false
as default- See Also:
WebMvcConfigurer.addInterceptors(InterceptorRegistry)
,InterceptorRegistry
- Default:
- false
-
-
-
handlerInterceptors
java.lang.Class<? extends org.springframework.web.servlet.HandlerInterceptor>[] handlerInterceptors
SpecifyHandlerInterceptor
types or its inherited types to register intoInterceptorRegistry
. IfregisterHandlerInterceptors()
istrue
, specified types will be ignored.- Returns:
null
as default- See Also:
WebMvcConfigurer.addInterceptors(InterceptorRegistry)
,InterceptorRegistry
- Default:
- {}
-
-
-
storeRequestBodyArgument
boolean storeRequestBodyArgument
Indicate that Stores theargument
ofHandlerMethod
that annotatedRequestBody
- Returns:
false
as default- See Also:
RequestBody
,StoringRequestBodyArgumentAdvice
,HandlerMethod
- Default:
- false
-
-