1:在tomcat的conf/service.xml中设置 URIEncoding="UTF-8"
2. controller中控制:
//防止出现中文乱码
fileName=new String(fileName.getBytes(),"UTF-8");
微信扫一扫
1:在tomcat的conf/service.xml中设置 URIEncoding="UTF-8"
2. controller中控制:
//防止出现中文乱码
fileName=new String(fileName.getBytes(),"UTF-8");
相关推荐