Skip to content

Allow telling Spring to ignore an argument when identifying the type #4210

@anton-johansson

Description

@anton-johansson

Would it be possible to add support for telling Spring to ignore a parameter? We have our own Context class that we inject via a custom HandlerMethodArgumentResolver. We usually like to have this as the first parameter. But when we do so, MessagingMessageListenerAdapter incorrectly interprets this as the event payload type.

Some options:

  • Allow us to configure a list of classes to ignore.
  • Automatically ignore any class that can be resolved via a HandlerMethodArgumentResolver.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions