I should create a Get service (using spring boot) with a lot of parameters.
I want to bind these parameters directly to my bean with @ModelAttribute
.
The problem: there is some differences between fields in the bean and the Get parameters.
Example:
- url: http://localhost:8080/api/v1?form_id=123&idPart=353
- bean:
private String formId; private String idPart;
So for idPart there is no problem, but for formId the value is not mapped.
Is there any Spring annotation that map the formId
field to form_id
parameter?