Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Weblogic在Angular中进行Gzip压缩_Angular_Spring_Rest_Spring Boot_Angular Material - Fatal编程技术网

使用Weblogic在Angular中进行Gzip压缩

使用Weblogic在Angular中进行Gzip压缩,angular,spring,rest,spring-boot,angular-material,Angular,Spring,Rest,Spring Boot,Angular Material,如何为Rest服务(Spring Boot+Angular)和应用服务器添加压缩,如gzip,这是Weblogic的一个问题。有很多例子是针对嵌入式服务器而不是像wildfly、weblogic这样的其他服务器出现的。请帮助我应用相同的功能。默认情况下,在spring boot应用程序中禁用gzip,您需要启用并配置以下属性 # Enable response compression server.compression.enabled=true # The comma-separated l

如何为Rest服务(Spring Boot+Angular)和应用服务器添加压缩,如gzip,这是Weblogic的一个问题。有很多例子是针对嵌入式服务器而不是像wildfly、weblogic这样的其他服务器出现的。请帮助我应用相同的功能。

默认情况下,在spring boot应用程序中禁用gzip,您需要启用并配置以下属性

# Enable response compression
server.compression.enabled=true

# The comma-separated list of mime types that should be compressed
server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json

# Compress the response only if the response size is at least 1KB
server.compression.min-response-size=1024
服务器12.2.1在 WebLogic Web容器,您可以在域或Web上启用它 应用程序级别