如果您有管理端口设置(执行器在单独的端口上运行)。您可以将管理注册为可以发现的单独服务。
所以如果你注册了 userservice 并已设定 management.server.port=8081 然后将有一个服务注册( userservice-management )其端口为8081,同一主机具有 userservice 实例。
userservice
management.server.port=8081
userservice-management