Spring 带 Eureka 的云 - Eureka Web UI URL

Spring cloud with Eureka - Eureka Web UI URL

我在 spring 引导应用程序中安装了 Eureka,Eureka 有一个整洁的网络 UI built 我喜欢

这是我在 application.yml

中的配置
server:
  port: 8081
management:
  context_path: /admin    

## EUREKA CONFIG ##
eureka:  
  instance:
    hostname: localhost    
  metadataMap:
    instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}}    
  client:
    registerWithEureka: true
    fetchRegistry: true
    server:
      waitTimeInMsWhenSyncEmpty: 0
    serviceUrl:
      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/ 

但是,网络 UI 出现在我位于

的尤里卡服务器上
http://localhost:8081/

有没有办法将网络 ui 的 url 更改为类似

的内容
http://localhost:8081/eurekawebui

谢谢

您可以设置eureka.dashboard.path=/eurekawebui。默认为 /.