posted on 2006-10-13 10:08 捕风 阅读(256) 评论(1) 编辑 收藏 所属分类: java高级
Dealing with Chinese, unicode I suppose is a pain on the neck. Add the following part solve the unicode problem. <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> <!-- 设置上传文件的最大尺寸为1MB --> <property name="maxUploadSize"> <value>1048576</value> </property> <property name="defaultEncoding"> <value>UTF-8</value> </property> </bean> 回复 更多评论
Powered by: BlogJava Copyright © 捕风