我用我的 Spring Boot 应用程序设置了 Eureka,并且 Eureka 内置了一个我喜欢的整洁的 Web UI
这是我的配置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/
但是,Web UI 显示在我的 eureka 服务器上
http://localhost:8081/
有没有办法将 web ui 的 url 更改为类似
http://localhost:8081/eurekawebui
谢谢