How do you Enable HTTP response compression in spring boot?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Feb 22, 2018

 

To enable HTTP response compression in spring boot using GZIP you have to add below settings in your application.properties file.

# Enabling HTTP response compression in spring boot
server.compression.enabled=true
server.compression.min-response-size=2048
server.compression.mime-types=application/json,application/xml,text/html,text/xml,text/plain

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Spring Boot Interview questions

    What does Spring Boot mean?

    Spring Boot is a system from “The Spring Team” to facilitate the bootstrapping and development of new Spring Applica..

    Spring Boot Interview questions

    What are the various Advantages Of Using Spring Boot?

    Here are some of the various advantages of using Spring Boot:It is quite easy to create Spring Based applications with..

    Spring Boot Interview questions

    What are the various features of Spring Boot?

    Various Spring Boot Features are as follows:Web Development Spring Application Application occasions and listeners Adm..