zgdy 发表于 2015-11-14 13:40:22

修改Tomcat字符编码和允许软连接

修改server.xml里的
<Connector port=&quot;80&quot; ..... URIEncoding=&quot;UTF-8&quot;/>

修改context.xml
<Context allowLinking=&quot;true&quot;>

    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>

    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname=&quot;&quot; />
    -->

    <!-- Uncomment this to enable Comet connection tacking (provides events
         on session expiration as well as webapp lifecycle) -->
    <!--
    <Valve className=&quot;org.apache.catalina.valves.CometConnectionManagerValve&quot; />
    -->

</Context>         版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: 修改Tomcat字符编码和允许软连接