使用方法:

在application.properties中添加:

#  @remark open springboot Gzip to solve the problem that login page loading time is too long.
server.compression.enabled=true
server.compression.mime-types=application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain

 

posted on 2019-08-23 11:01  lshan  阅读(671)  评论(0编辑  收藏  举报