jspdns
jspdns
2014-08-21 03:56

spring mvc请求注解映射

  • messageconverters

错误描述:No setter found for property 'messageConverters' in class 'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter'。

代码如下:



text/html;charset=UTF-8


<bean       class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
    <property name="messageConverters">
        <list>
            <ref bean="mappingJacksonHttpMessageConverter" />
        </list>
    </property>
</bean>
  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答