I am rewriting an old REST service written in an in-house framework to use Spring. I have a Controller with a POST method which takes a parameter either as a POST or as
The @JsonProperty annotation can only work with the JSON format, but you're using x-www-form-urlencoded.
@JsonProperty
x-www-form-urlencoded
If you can't change your POST type, you have to write your own Jackson ObjectMapper:
@JsonProperty not working for Content-Type : application/x-www-form-urlencoded