问答详情
源自:3-5 SpringMVC配置

spring-servlet中出现问题

实际操作时报错:Bean property'ignoreAcceptHeader' is not writable or has an invalid setter method. Does theparameter type of the setter match the return type of the getter? 需要将viewResolver 的bean class 改为 org.springframework.web.accept.ContentNegotiationManagerFactoryBean

提问者:NLCoder 2017-03-16 20:24

个回答

  • 彪子的刀子
    2017-03-28 08:29:18

    查看get set方法看看呢