Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReactiveFeignClient not working with Spring Native build #612

Open
AlohaJava opened this issue Jul 18, 2023 · 1 comment
Open

ReactiveFeignClient not working with Spring Native build #612

AlohaJava opened this issue Jul 18, 2023 · 1 comment

Comments

@AlohaJava
Copy link

AlohaJava commented Jul 18, 2023

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.

@pauloRohling
Copy link

I have exactly the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants