Filter过滤器(gzip) 全站 压缩

2016-8-1 流沙 JAVA

package com.itheima.filter; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.zip.GZIPOutputStream; import javax.servlet.Filter; import javax.servlet.FilterChain; ...

阅读全文>>

标签: gzip

评论(0) 浏览(396)


Servlet压缩(gzip)测试

2016-7-31 流沙 JAVA

package com.gyarmy.demo4; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintWriter; import java.util.zip.GZIPOutputStream; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; impor...

阅读全文>>

标签: gzip

评论(0) 浏览(464)


Powered by 流沙团