How to add support for Shallow ETag in ResponseEntity Spring Java

Viewed 27

I understand that we can create the filter for Shallow E tag in spring. However, i am looking if there is an easier way to do it. I am using HttpEntity in my code for getting the response. The code looks like this

return ResponseEntity.ok()
                    .eTag(getETag(preloadMap))
                    .body(preloadMap);

However, I am looking forward to options of changing this etag to Shallow etag in a simpler way.

0 Answers
Related