-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support placeholders in @FeignClient definitions #414
Comments
This feature would be nice, not just to resolve scheme, but for use cases like plug local app to cloud dev environment with prefixes etc. |
Any change to get this into the next release? Thanks |
I have stumbled upon this issue myself and thought it would be very helpful to have this resolved. That's why I have implemented the fix (I call it a fix as it is clearly an omission and I categorise it as a bug). |
I believe you can set |
@dsyer I would like to use this feature not to support ssl, but to add prefixes to the services. E.g I would set |
Other Ribbon clients in Spring Cloud use a ServerIntrospector to check if the Server wanted to be secure. This change levels things up (and makes the Spring Feign Client a lit easier to customize). See gh-414
I don't think that's a great use case either. The whole point of service discovery is so you don't have to do this kind of thing. |
I agree with Dave that placeholders have little use in service discovery. However they are quite useful when using |
Other Ribbon clients in Spring Cloud use a ServerIntrospector to check if the Server wanted to be secure. This change levels things up (and makes the Spring Feign Client a lit easier to customize). See spring-cloudgh-414
👍 only because this seems like expected behavior and it would be beneficial to pull values from a config -- otherwise, be cautious about disrupting behavior between environments. |
The com.netflix.loadbalancer.LoadBalancerContext takes the original protocol from the @FeignClient definition so if you want to use https you can specify that with (as discussed in #337)
It would be very helpful to support placeholder here so that you can have different schemes in various landscapes:
The text was updated successfully, but these errors were encountered: