MapMethodProcessor precludes custom argument resolvers with Map and custom annotation [SPR-17340] #21874
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Laplie opened SPR-17340 and commented
Spring argument resolvers are listed first in
As a result, the built-in argument resolvers always have precedence. In a controller method such as:
Where "
@MyCustomAnnotation
" triggers a custom argument resolver, the custom argument resolver is NEVER used because Spring has a built-in resolver for Map.classThere are 2 possible simple solutions I can think of to this problem:
@Order
annotation on method resolvers and sort the resolver listIn the meantime, the workaround that I have to use is not using a Map for my argument
Affects: 5.0.6
The text was updated successfully, but these errors were encountered: