Enabling Gzip compression in SpringBoot applications

Views: 121   

Gzip compression is very important if you have a public facing website as the user experience matters a lot based on the size of the responses.
Response sizes will directly affect the network transfers timings.

In spring boot applications, you can enable the Gzip compression by adding the following properties into application.properties

server.compression.enabled=true
server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain
On By