feign-reactive
feign-reactive copied to clipboard
ReactiveFeignClient not working with Spring Native build
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.
I have exactly the same problem