编程语言
首页 > 编程语言> > 解决 No converter found for return value of type: class java.util.ArrayList

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

作者:互联网

问题描述:

 

出现这样的情况 : No converter found for return value of type: class java.util.ArrayList 

原因是没有办法解析json字符串,

1.需要在pom文件中添加依赖

/*
       <!--json-->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.11.0</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.11.0</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
            <version>2.11.0</version>
        </dependency>        
*/

2.添加完成之后,需要在project structure中的lib中也添加相关依赖!

 

标签:core,return,converter,java,添加,jackson,com,2.11,fasterxml
来源: https://www.cnblogs.com/ljy9/p/14708676.html