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

Clients Target.name not correspond to ReactiveFeignClient.name #669

Open
Donquih0te opened this issue Feb 15, 2024 · 0 comments
Open

Clients Target.name not correspond to ReactiveFeignClient.name #669

Donquih0te opened this issue Feb 15, 2024 · 0 comments

Comments

@Donquih0te
Copy link

If I specify name and url attributes in @ReactiveFeignClient annotation

@ReactiveFeignClient(
    name = "clientName",
    url = "http://google.com",
    path = "/path",
    configuration = Configuration.class
)

Then the client's feign.Target.name (feign.Target.HardCodedTarget) would not be equal to ReactiveFeignClient.name:
HardCodedTarget(type=Client, url=http://google.com, name=http://google.com)

However, if I specify only name without url attribute in @ReactiveFeignClient annotation

@ReactiveFeignClient(
    name = "clientName",
    path = "/path",
    configuration = Configuration.class
)

then the client's feign.Target would look like:
HardCodedTarget(type=Client, url=http://clientName, name=clientName)

Why, if I specify both name and url attributes, Target.name is not equal to ReactiveFeignClient.name?

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

1 participant