简体   繁体   中英

Resteasy GZIP being ignored when packaged as a jar

I'm having issues with GZIP annotation in Resteasy where it works fine when I'm running from main function (in Eclipse), but when I package it with Maven Assembly plugin and run it with an embedded Netty it doesn't work, the returned content is not GZIP-ed and there are no exceptions. I think that this might be from the assembly plugin, but if some libraries/classes were not loaded correctly, I would expect to see some exceptions. Any hints will be greatly appreciated.

Are you sure you added header parameter "Accept-Encoding" and passed the value gzip from your rest client? http://en.wikipedia.org/wiki/HTTP_compression

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM