The resttemplate is used to request gzip compression/decompression but does not perform the actual work. To gzip/ungzip we need to add a gzip enabled http message converter to the registered ones (see constructor).