I registered two services under Eureka. Resttemplate calls the interface of another service through the service name of one service. The following error occurred. If I call directly through IP, there will be no error. enter image description here
I have annotated @ loadlanced under resttemplate to confirm that there is no error in the service name. Please ask us how to solve this bug
In configuration, set
eureka.instance.prefer-ip-address=true
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.