解决 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中也添加相关依赖!

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

 

上一篇:jackJson 使用


下一篇:处理fastJson 序列化时间问题