Spring 3.2 content negotiation class cast exception

后端 未结 4 1208
青春惊慌失措
青春惊慌失措 2021-02-04 21:21

We develop a standard Java web application using Spring MVC, and have recently tried to upgrade from 3.0.6 to 3.2.0. Nearly of all our servlet responses are JSP or Json views, b

4条回答
  •  清歌不尽
    2021-02-04 22:14

    I fixed the problem by removing duplicated from xml-configuration or @EnableWebMVC annotation from the class because spring documentation warns about that and allowed only once by contract.

提交回复
热议问题