zoukankan      html  css  js  c++  java
  • java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonProcessingException

    When I run junit test, encountered this error: java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonProcessingException

    Solution: add the following dependencies:

    [html] view plaincopy在CODE上查看代码片派生到我的代码片
     
    1. <dependency>  
    2.             <groupId>com.fasterxml.jackson.core</groupId>  
    3.             <artifactId>jackson-core</artifactId>  
    4.             <version>2.1.0</version>  
    5.         </dependency>  
    6.         <dependency>  
    7.             <groupId>com.fasterxml.jackson.core</groupId>  
    8.             <artifactId>jackson-databind</artifactId>  
    9.             <version>2.1.0</version>  
    10.         </dependency>  
    11.         <dependency>  
    12.             <groupId>com.fasterxml.jackson.core</groupId>  
    13.             <artifactId>jackson-annotations</artifactId>  
    14.             <version>2.1.0</version>  
    15.         </dependency>  

    Reference:

    1. http://stackoverflow.com/questions/14333709/spring-mvc-3-2-and-json-objectmapper-issue

  • 相关阅读:
    stm32之不定长接收
    3、列表和列表项
    2、FreeRTOS任务相关API函数
    1、FreeRTOS移植
    5、根文件系统原理
    1、c++对c语言的扩展
    4、移植三星官方内核
    3、内核的启动过程
    2、内核的配置和移植
    iOS学习笔记19-地图(一)定位CoreLocation
  • 原文地址:https://www.cnblogs.com/exmyth/p/5136695.html
Copyright © 2011-2022 走看看