Feign: ClassNotFoundException: feign.Request$Body

Created on 25 Mar 2019  Â·  3Comments  Â·  Source: OpenFeign/feign

Hi, I am implementing upload file with this library, but it always throw this exception (like pictures)
image

So I go to the library to verify if that class is existed (Request.Body), and I found there is not the inner class Request.Body only Request.Option, the class Body is out of Request.

image

But in the code of the version 3.7.0,

image

it is always use "Request.Body" please your help

image

question

Most helpful comment

@neketsushonen

You will need to use Feign 10.x or higher. Please check your dependencies.

All 3 comments

@neketsushonen

You will need to use Feign 10.x or higher. Please check your dependencies.

if you use feign-form, only Feign 10.1.x or higher is supported
however, what makes me confused is that 10.1.0 does not appear in release list while exist in repo:https://mvnrepository.com/artifact/io.github.openfeign/feign-core/10.1.0

The general rule here is to use the most recent, stable version of Feign. As of this comment, that version is 10.2.3

Was this page helpful?
0 / 5 - 0 ratings