This is the config in my standalone.xml
<system-properties>
<property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" value="on"/>
<property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION_MIME_TYPES" value="text/javascript,text/css,text/html,text/xml,text/json,application/json,application/json; charset=utf-8"/>
</system-properties>
but i not sure why my response with ContentType=application/json is fine,but the content is not compress.
When i changed ContentType=text/xml,it works.