如何查看在 Eureka 服务器上注册的应用程序列表?

How can i see the list of apps registered with Eureka server?

我正在努力理解 'netflix.eureka.server'。这是我的服务器代码

@EnableEurekaServer
@SpringBootApplication
public class EurekaServerDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(EurekaServerDemoApplication.class, args);
    }

}

这是我的 application.yml

server:
  port: 8761

eureka:
  instance:
    hostname: localhost
  client:
    registerWithEureka: false
    fetchRegistry: false
    serviceUrl:
      defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/

应用已启动,运行我可以使用“http://localhost:8761/actuator/health”查看状态并获取 {"status":"UP"}

现在这是我的客户端应用程序代码

@SpringBootApplication
@EnableEurekaClient
public class EurekaClientDemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(EurekaClientDemoApplication.class, args);
    }
}

这是我的客户application.properties

server.port=8080
spring.application.name=EurekaClientDemoApplication

这是我的 application.yml

eureka:
  client:
    serviceUrl:
      defaultZone: http://localhost:8761/eureka/

现在客户端应用程序也启动了 运行。现在我试图通过点击“http://localhost:8761/eureka/”来查看在尤里卡服务器上注册的客户端,但我收到页面未找到异常。有人可以帮助我了解我在这里缺少什么以及如何查看在我的尤里卡服务器上注册的应用列表吗?

最后我想出了如何列出在我的 Eureka 服务器上注册的所有应用程序。这是相同的 URL

http://localhost:8761/eureka/apps