Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks
Posted 小锅牛
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks相关的知识,希望对你有一定的参考价值。
最近整合SSM框架,使用Jackson组件时,出现了问题,具体描述如下:
查找了一下资料,发现出现Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException的根本原因在于jar包,我的SSM都是基于5.0.4版本的jar,导入的jackson的jar版本过低造成出现该异常。
现在就OK了。。。
以上是关于Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks的主要内容,如果未能解决你的问题,请参考以下文章
SpringBean instantiation via constructor failed nested exception Constructor threw exception
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks
Failed to instantiate [引用 spring 配置文件的类]: Constructor threw exception; nested exception is java.lang