解决No converter found for return value of type: class java.util.ArrayList问题

解决No converter found for return value of type: class java.util.ArrayList问题

最近做ssm项目遇到了下面这个问题。
解决No converter found for return value of type: class java.util.ArrayList问题_第1张图片

解决办法:添加三个依赖:


 <properties>
    <jackson.version>2.9.0jackson.version>
  properties>
  <dependencies>
    <dependency>
      <groupId>com.fasterxml.jackson.coregroupId>
      <artifactId>jackson-databindartifactId>
      <version>${jackson.version}version>
    dependency>

    <dependency>
      <groupId>com.fasterxml.jackson.coregroupId>
      <artifactId>jackson-coreartifactId>
      <version>${jackson.version}version>
    dependency>

    <dependency>
      <groupId>com.fasterxml.jackson.coregroupId>
      <artifactId>jackson-annotationsartifactId>
      <version>${jackson.version}version>
    dependency>
  dependencies>

问题即可解决。
解决No converter found for return value of type: class java.util.ArrayList问题_第2张图片

你可能感兴趣的:(bug,java)