Java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException

后端 未结 6 1869
花落未央
花落未央 2020-12-01 11:54

I have updated my dependecies like you said in your comment and i have this now :

org.springframework.context.ApplicationContextException: Unable to start em         


        
6条回答
  •  有刺的猬
    2020-12-01 12:02

    Use all the jackson dependencies(databind,core, annotations, scala(if you are using spark and scala)) with the same version.. and upgrade the versions to the latest releases..

    
                com.fasterxml.jackson.module
                jackson-module-scala_2.11
                2.9.4
            
    
            
            com.fasterxml.jackson.core
            jackson-databind
            2.9.4
            
                
                    com.fasterxml.jackson.core
                    jackson-core
                
                
                    com.fasterxml.jackson.core
                    jackson-annotations
                
            
        
        
            com.fasterxml.jackson.core
            jackson-core
            2.9.4
        
    
            
            com.fasterxml.jackson.core
            jackson-annotations
            2.9.4
    
            
    

    Note: Use Scala dependency only if you are working with scala. Otherwise it is not needed.

提交回复
热议问题