Dynamic hostname in @AuthorizedFeignClient
问题 In a microservice system, I have an interface with the annotation @AuthorizedFeignClient(name="send-email", url="http://localhost:8080/utils/api/email") , in the development environment it works correctly, however, in the Docker environment, I need the url parameter to have the Docker container name in place of localhost to work in the Docker environment. I tried adding in the application-prod.yml the configuration: containers-host: gateway: jhipster-gateway And in the annotation I put it