解决
三个jar
jackson-annotions-2.6.0.jar
jackson-core-2.6.4.jar
jackson-databind-2.6.4.jar
AnnotationMethodHandlerAdapter 配置
servlet.xml里面加入
<bean id="annotationMethodHanlder" class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter" >
<property name="messageConverters">
<list>
<ref bean="jsonp"/>
</list>
</property>
</bean>
<bean id="jsonp" class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<bean class="org.springframework.http.MediaType">
<constructor-arg value="text"/>
<constructor-arg value="json"/>
<constructor-arg>
<map>
<entry key="charset" value="UTF-8" />
</map>
</constructor-arg>
</bean>
</list>
</property>
</bean>
其他
至于用 <mvc:annotation-driven /> 配置xml什么的我并没有用到
refer
http://www.ttwen.info/article/1190838
http://blog.csdn.net/zhujianli1314/article/details/50697967
http://www.cnblogs.com/tanglc/p/3664795.html
http://fanshuyao.iteye.com/blog/2246408