本文共 127 字,大约阅读时间需要 1 分钟。
1:在tomcat的conf/service.xml中设置 URIEncoding="UTF-8"
2. controller中控制:
//防止出现中文乱码fileName=new String(fileName.getBytes(),"UTF-8");