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 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
-
-
-
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
java.lang.Class<? extends org.springframework.web.servlet.HandlerInterceptor>[] registerHandlerInterceptors
Indicate whether theInterceptorRegistry
registers the beans ofHandlerInterceptor
by the specified types- Returns:
false
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
-
-