The problem lies here:
ResponseEntity> result = restTemplate.exchange(uri, HttpMethod.GET, null, new ParameterizedTypeReference>(){}, params);
I get my result, it is all good but I have to use @JsonIgnore.. aotation on a Mail class because it caot map attachment list of the Attachment object, it has String fileName, file byte[].. Both models Serializable.. I caot use this aotation as I need attachment list, now it retus null for it.
Any suggestion???
