Fork me on GitHub

java.lang.ClassNotFoundException: com.fasterxml.jackson.core.JsonProcessingException 解决

java.lang.ClassNotFoundException: com.fasterxml.jackson.core.JsonProcessingException异常时

1、首先查看maven中是否添加了以下依赖

<dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>2.9.8</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.9.8</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
            <version>2.9.8</version>
        </dependency>

2、查看 project structure 中的 Libraries项 看是否添加成功

3、查看 project structure 中的 Artifacts

到这里问题就应该解决了!

补充:org.springframework.beans.factory.BeanCreationException也可以考虑此方式!

posted @ 2021-03-07 22:22  雾深  阅读(5310)  评论(0编辑  收藏  举报