Eureka-server configuration after servlet.context-path leading to Eureka-client registered to server problems

In springboot project is well equipped servlet.context-path (application context path), also known as the project path, this configuration allows the project to increase the value of URL configuration after.
If the value is disposed in the Eureka-server, of course, will change the URL Eureka-server.
But if the Eureka-client need to register to Eureka-server, then you need to modify the value eureka.client.service-url.defaultZone. For example: http: // localhost: 10086 / eureka previously registered address needs '/ eureka' servlet.context-path value before adding configure => http: // localhost: 10086 / auto / eureka. In order to complete the registration.
Peace

Guess you like

Origin www.cnblogs.com/coding-jc/p/12076550.html