Jackson ObjectMapper() constructor throws NoSuchMethod

后端 未结 9 1796
忘掉有多难
忘掉有多难 2020-12-09 03:40

I\'m using Jackson sample code to deserialize a POJO:

ObjectMapper m = new ObjectMapper();

This line throws a NoSuchMethodError:

         


        
9条回答
  •  醉梦人生
    2020-12-09 03:54

    In my case it was the amazonaws sdk that caused this. Using just the exclusion for jackson-mapper-asl didn't work but using an exclusion for core and mapper did:

        
            com.amazonaws
            aws-java-sdk
            1.3.13
            
                
                    org.codehaus.jackson
                    jackson-core-asl
                
                
                    org.codehaus.jackson
                    jackson-mapper-asl
                
            
        
    

提交回复
热议问题