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 plain copy 在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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM