You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add customArgumentResolvers to <mvc:annotation-driven> [SPR-6750] #11416
The mvc:annotation-driven schema permits the specification of messageConverters, which are passed on to the generated AnnotationMethodHandlerAdapter. I'd like to see the ability to specify the customArgumentResolvers also.
I suppose there's a fine line between making mvc:annotation-driven minimalist and supporting common use cases only, and simply duplicating every property from AnnotationMethodHandlerAdapter and DefaultAnnotationHandlerMapping.
Kenny, I don't understand what you mean. I don't see how how it's possible to customize this with a WebArgumentResolver. I'd like to see this capability added as well.
With regard to keeping mvc:annotation-driven simple while still allowing you to use it, it would help us to better understand the context behind the specific customizations you need (and can't do with the tag at present). If you can provide detail there, that'd be great. As you alluded to Kenny, we don't just want to expose the same set of low-level config options you can configure at the bean level...
It would nice if it were rarely necessary to explicitly declare a AnnotationMethodHandlerAdapter and DefaultAnnotationHandlerMapping in the context, since the two are almost always used together. If we could treat them as a single entitiy, by configuring the <mvc:annotation-driven>, that would be good.
That's what mvc:annotation-driven ultimately does of course, configuring both the HandlerMapping and HandlerAdapter. To get where it's rarely necessary to explicitly declare custom instances of these, we need to understand the types of customizations that people are requiring. We don't just want to expose all the low-level configuration options, else there's not much gained in the abstraction.
Activity
spring-projects-issues commentedon Jan 22, 2010
Kenny MacLeod commented
I got this completely wrong. Please ignore (and close). Sorry.
spring-projects-issues commentedon Feb 12, 2010
Bob McCune commented
Kenny, I don't understand what you mean. I don't see how how it's possible to customize this with a WebArgumentResolver. I'd like to see this capability added as well.
spring-projects-issues commentedon Feb 12, 2010
Keith Donald commented
With regard to keeping mvc:annotation-driven simple while still allowing you to use it, it would help us to better understand the context behind the specific customizations you need (and can't do with the tag at present). If you can provide detail there, that'd be great. As you alluded to Kenny, we don't just want to expose the same set of low-level config options you can configure at the bean level...
spring-projects-issues commentedon Feb 12, 2010
Kenny MacLeod commented
It would nice if it were rarely necessary to explicitly declare a
AnnotationMethodHandlerAdapterandDefaultAnnotationHandlerMappingin the context, since the two are almost always used together. If we could treat them as a single entitiy, by configuring the<mvc:annotation-driven>, that would be good.spring-projects-issues commentedon Feb 13, 2010
Keith Donald commented
That's what mvc:annotation-driven ultimately does of course, configuring both the HandlerMapping and HandlerAdapter. To get where it's rarely necessary to explicitly declare custom instances of these, we need to understand the types of customizations that people are requiring. We don't just want to expose all the low-level configuration options, else there's not much gained in the abstraction.
spring-projects-issues commentedon Jul 22, 2010
Dmitry Katsubo commented
This issue is relative to #11751.