设置Tomcat编码

<Connector 
        port="8080" 
        maxThreads="150" 
        minSpareThreads="25" maxSpareThreads="75" 
        enableLookups="false" 
        redirectPort="8443" 
        acceptCount="100" 
        debug="0" 
        connectionTimeout="20000" 
        disableUploadTimeout="true" 
        URIEncoding="UTF-8"  
/> 

特别需要注意的是URIEncoding="UTF-8" ,如果不设置,url上传递的中文就不能被正确解码。

相关文章:

  • 2022-02-18
  • 2021-12-06
  • 2021-12-12
  • 2022-02-25
  • 2021-12-24
  • 2022-01-11
  • 2021-12-30
猜你喜欢
  • 2022-01-28
  • 2021-11-07
  • 2022-12-23
  • 2021-10-16
  • 2022-02-07
相关资源
相似解决方案