数据乱码
在开发中出现数据乱码的情况,是字符集设置没有弄好
进入到tomcat/comf/server.xml中
<Connector port=“8080” protocol=“HTTP/1.1” …/>
在这个里面加一个 URIEncoding=”utf-8”
<Connector port=“8080” protocol=“HTTP/1.1”
connectionTimeout=“20000”
redirectPort=“8443” URIEncoding=“utf-8”/>
在后台代码中request.getParameter();接受前台数据的时候就不需要在做字符集设置了,希望可以帮助到你!