RestClientException: Could not extract response. no suitable HttpMessageConverter found

后端 未结 11 2218
感情败类
感情败类 2020-12-13 08:17

Using the curl command:

curl -u 591bf65f50057469f10b5fd9:0cf17f9b03d056ds0e11e48497e506a2 https://backend.tdk.com/api/devicetypes/59147fd79e93s12e61499ffe/me         


        
11条回答
  •  余生分开走
    2020-12-13 08:49

    I was having a very similar problem, and it turned out to be quite simple; my client wasn't including a Jackson dependency, even though the code all compiled correctly, the auto-magic converters for JSON weren't being included. See this RestTemplate-related solution.

    In short, I added a Jackson dependency to my pom.xml and it just worked:

    
        com.fasterxml.jackson.core
        jackson-databind
        2.5.1
    
    

提交回复
热议问题