MappingJacksonJsonView已被废弃了:

http://static.javadoc.io/org.springframework/spring-webmvc/4.0.1.RELEASE/deprecated-list.html

而升级为MappingJackson2JsonView
因此POM.xml中的JACKSON版本请升级为:
<dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.6.5</version>
</dependency>

同时修改为:
   <bean class="org.springframework.web.servlet.view.json.MappingJackson2JsonView">
    <property name="contentType" value="application/json"/>
</bean>

相关文章:

  • 2019-09-08
  • 2021-12-28
  • 2021-10-01
  • 2021-07-15
  • 2021-06-16
  • 2022-01-27
  • 2021-05-21
  • 2022-02-24
猜你喜欢
  • 2021-09-11
  • 2021-05-19
  • 2022-01-04
  • 2021-09-02
  • 2022-02-27
  • 2021-10-22
  • 2021-08-09
相关资源
相似解决方案