feign-reactive icon indicating copy to clipboard operation
feign-reactive copied to clipboard

ReactiveFeignClient not working with Spring Native build

Open AlohaJava opened this issue 1 year ago • 1 comments

I cant build project with ReactiveFeignClient with Spring Boot Native

@ReactiveFeignClient(
    name = "reactiveFeignClientTest",
    url = "http://google.com"
)
interface ReactiveFeignClientTest{
    @PostMapping(consumes = [MediaType.APPLICATION_JSON_VALUE], produces = [MediaType.APPLICATION_JSON_VALUE])
    fun getHints(@RequestBody request: RequestDto): Mono<ResponseDto>
}

data class RequestDto(
    val someVal: String
)


data class ResponseDto(
    val someVal: String
)

I also added

@EnableReactiveFeignClients(clients = [ReactiveFeignClientTest::class])

In jvm runtime it works perfect. In native Image I got: Parameter 0 of constructor in com.example.demo.ControllerTester required a bean of type 'com.example.demo.ReactiveFeignClientTest' that could not be found.

AlohaJava avatar Jul 18 '23 17:07 AlohaJava

I have exactly the same problem

pauloRohling avatar Oct 05 '23 01:10 pauloRohling