I want to know the difference between conversion service and argument resolver in spring framework.

Asked 2 years ago, Updated 2 years ago, 129 views

Just like the title

I want to know the difference between conversion service and argument resolver in spring framework.

Please give me some advice.

Thank you.

spring conversionservice

2022-09-22 13:00

1 Answers

There is a difference in the purpose of use.

Conversion Service is simply for the type transformation between the two types. It is to change Class A's Instance to Class B's Instance.

Argument Resolver is for extracting from Http request into a specific type.

And depending on the situation, the converters can be used by Argument Resolver.


2022-09-22 13:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.