我用的是Jboss-eap-7.4
修改standalone.xml
allow-unescaped-characters-in-url="true" url-charset="windows-1250"
<subsystem xmlns="urn:jboss:domain:undertow:12.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other" statistics-enabled="${wildfly.undertow.statistics-enabled:${wildfly.statistics-enabled:false}}">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http" redirect-socket="https" allow-unescaped-characters-in-url="true" enable-http2="true" url-charset="windows-1250"/>
<https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" allow-unescaped-characters-in-url="true" enable-http2="true" url-charset="windows-1250"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<http-invoker security-realm="ApplicationRealm"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
<websockets/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
</subsystem>