Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom WebArgumentResolvers to be configured using the mvc namespace [SPR-7327] #11986

Closed
spring-projects-issues opened this issue Jun 27, 2010 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Keith Donald opened SPR-7327 and commented

Currently there is no easy way to configure WebArgumentResolvers and use the namespace. You can write a BeanPostProcessor to change AnnotationMethodHandlerAdapter after construction, but its API does not allow you to add a resolver, only set the entire collection. The other option is to not use mvc:annotation-driven.

A child element of mvc:annotation-driven should do the trick:

<mvc:annotation-driven>
    <mvc:custom-web-argument-resolvers>
        <bean class="org.example.MyWebArgumentResolver"/>
    </mvc:custom-web-argument-resolvers>
</mvc:annotation-driven>

Affects: 3.0.3

Referenced from: commits 37e0a90, 7aaad37

1 votes, 1 watchers

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: web Issues in web modules (web, webmvc, webflux, websocket) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.1 M1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants