json问题

2023-03-01 19:07:09 浏览数 (2)

问题

No converter found for return value of type: class com.dream.ssm.po.ItemsCustom

解决

添加依赖包jackson-databin

关于json的所有依赖如下:

代码语言:javascript复制
<!-- 映入JSON -->
<dependency>
  <groupId>org.codehaus.jackson</groupId>
  <artifactId>jackson-mapper-asl</artifactId>
  <version>1.9.13</version>
</dependency>
<dependency>
  <groupId>org.codehaus.jackson</groupId>
  <artifactId>jackson-core-asl</artifactId>
  <version>1.9.13</version>
</dependency>
<!-- 新加 https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
  <groupId>com.fasterxml.jackson.core</groupId>
  <artifactId>jackson-databind</artifactId>
  <version>2.9.8</version>
</dependency>

感谢这位博主

0 人点赞