博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
springmvc 上传图片中文乱码解决方案
阅读量:176 次
发布时间:2019-02-28

本文共 127 字,大约阅读时间需要 1 分钟。

1:在tomcat的conf/service.xml中设置  URIEncoding="UTF-8"

   

2. controller中控制:

//防止出现中文乱码fileName=new String(fileName.getBytes(),"UTF-8");

你可能感兴趣的文章