就在红色框框里接收,或者在这个方法里接收,就好了,后面有个方法给接口就行了,求大神!在线等
大神写好的接口,我只用上传就好了
配置如下
<?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
">
<!-- 自动扫描且只扫描@Controller -->
<context:component-scan base-package="com.wadata.hspjkpt.v1.xt.web.controller"/>
<mvc:annotation-driven>
<mvc:argument-resolvers>
<bean class="com.wadata.hspjkpt.v1.interceptor.CommonHandlerMethodArgumentResolver" />
</mvc:argument-resolvers>
<mvc:message-converters>
<bean class="org.springframework.http.converter.StringHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/plain;charset=UTF-8</value>
<value>application/javascript;charset=UTF-8</value>
<value>text/css;charset=UTF-8</value>
</list>
</property>
</bean>
<bean class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">
<property name="supportedMediaTypes">
<value>text/plain;charset=UTF-8</value>
</property>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
<!-- 容器默认的DefaultServletHandler处理 所有静态内容与无RequestMapping处理的URL -->
<mvc:default-servlet-handler/>
<!-- 定义无需Controller的url<->view直接映射 -->
<mvc:view-controller path="/xzzx*" view-name="redirect:/" />
UTF-81073741824