SpringMVC配置

<!-- 上传文件解析器 -->
	<bean id = "multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
		<property name="defaultEncoding" value="UTF-8" />
		<!-- 上传文件的最大尺寸为3MB -->
		<property name="maxUploadSize" value="31457280" />
		<property name="maxInMemorySize" value="4096" />
	</bean>
<!-- SpringMVC核心控制器 -->
	<servlet>
		<servlet-name>springServlet</servlet-name>
		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
		<init-param>a
			<param-name>contextConfigLocation</param-name>
			<param-value>classpath:spring/spring-mvc.xml</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>
	<servlet-mapping>
		<servlet-name>springServlet</servlet-name>
		<url-pattern>/</url-pattern>
	</servlet-mapping>
<form action="<%=request.getContextPath()%>/upload" method="post" enctype="multipart/form-data">文件上传
  <!--静态资源过滤  -->
    <mvc:resources location="/ref/" mapping="/ref/**"/>

GET请求中文乱码问题

MESSAGE=new String (message.getBytes("iso-8859-1"),"utf-8");