Calling the endpoint from a browser returns back my set
[ {"prop1" : "A"}, {"prop1" : "B"} ]
The weird thing happens when I call this via resttemplate, it comes back as {"endpointPath": [ {"prop1" : "A"}, {"prop1" : "B"} ] }
The endpoint path is endpoint-path, but somehow in the json is camel-cased.
The call is like this:
config.restTemplate.exchange(uri, HttpMethod.GET, null, typeRef).body
where typeRef is = object : ParameterizedTypeReference<Set<MyPojo>>() {}
I don't know why this happens. Do you?