Skip to content

Add customArgumentResolvers to <mvc:annotation-driven> [SPR-6750] #11416

Closed

Description

@spring-projects-issues

Kenny MacLeod opened SPR-6750 and commented

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.


Affects: 3.0 GA

Activity

  1. spring-projects-issues commented on Jan 22, 2010

    @spring-projects-issues
    CollaboratorAuthor

    Kenny MacLeod commented

    I got this completely wrong. Please ignore (and close). Sorry.

  2. spring-projects-issues commented on Feb 12, 2010

    @spring-projects-issues
    CollaboratorAuthor

    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.

  3. spring-projects-issues commented on Feb 12, 2010

    @spring-projects-issues
    CollaboratorAuthor

    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...

  4. spring-projects-issues commented on Feb 12, 2010

    @spring-projects-issues
    CollaboratorAuthor

    Kenny MacLeod commented

    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.

  5. spring-projects-issues commented on Feb 13, 2010

    @spring-projects-issues
    CollaboratorAuthor

    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.

  6. spring-projects-issues commented on Jul 22, 2010

    @spring-projects-issues
    CollaboratorAuthor

    Dmitry Katsubo commented

    This issue is relative to #11751.

  7. added
    status: invalid
    type: enhancement
    in: web
    and removed
    type: enhancement
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: webstatus: invalid

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions