解决http的post请求乱码问题

首先在struts.xml中增加如下项:

<constant name=" struts.locale" value="UTF-8"></constant>

struts2解决中文乱码。解决http的post和get请求乱码问题

解决http的get请求乱码问题

打开你的tomcat安装目录在里面找conf/ server.xml,用编辑器打开这个文件,在里面增加如下项:

URIEncoding="UTF-8"

struts2解决中文乱码。解决http的post和get请求乱码问题

 

 

 

相关文章:

  • 2022-01-16
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2022-01-17
  • 2021-12-21
猜你喜欢
  • 2021-10-14
  • 2021-04-18
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案