Skip to content

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

@Donquih0te

Description

@Donquih0te

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions