java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectWriter.forType

前端 未结 2 1750
天涯浪人
天涯浪人 2021-01-17 01:34

when accessing the deployed spring boot application in weblogic , I am getting the below exception

java.lang.NoSuchMethodError: com.fasterxml.jackson.databin         


        
2条回答
  •  萌比男神i
    2021-01-17 02:13

    You got this problem because you compile your application with a com.fasterxml version different from the one used by weblogic. So you must tell weblogic to use your version and not the native one.

    If you deploy your application as a war, you must add a weblogic.xml file specifying the packages which should have precedence (make sure to add it in the src/main/webapp/WEB-INF folder). In your case you must add the com.fasterxml package:

    
    
        
            
                com.fasterxml
            
        
    
    

    And it should work.

提交回复
热议问题