博客
关于我
springmvc 上传图片中文乱码解决方案
阅读量:181 次
发布时间:2019-02-28

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

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

   

2. controller中控制:

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

你可能感兴趣的文章
MySql中关于geometry类型的数据_空的时候如何插入处理_需用null_空字符串插入会报错_Cannot get geometry object from dat---MySql工作笔记003
查看>>