shop++商品搜索出現亂碼是因爲tomcat字符集編碼配置不正確引發的,解決方法是修改tomcat server.xml中的字符集編碼配置,以下:javascript
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" compression="on" compressableMimeType="text/html,text/css,text/javascript" />css