【问题标题】:Spring WebFlux endpoints in 8080 port can be accessible via metrics:9443 port8080 端口中的 Spring WebFlux 端点可以通过 metrics:9443 端口访问
【发布时间】:2020-02-27 16:20:07
【问题描述】:

在我的 Spring 启动应用程序中,我对 WebFlux 的依赖为 spring-boot-starter-webflux,并且在服务器启动时,它表示应用程序已准备好使用 Netty。 NettyWebServer:Netty started on port(s): 8080

另外,我有 Spring Boot Actuator 依赖,并在端口 9443 spring-boot-starter-actuator 上公开指标端点

但是当我启动应用程序时,我可以通过 mertics 端口访问我的其余端点,我认为这是一个错误: http://localhost:9443/api/

谁能帮我解决这个问题?

【问题讨论】:

    标签: java spring spring-boot spring-webflux reactor-netty


    【解决方案1】:

    这是 Spring Boot + Spring Framework 中的一个已知问题。目前没有已知的解决方法。 You can follow the dedicated issue on GitHub.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-02
      • 1970-01-01
      • 2020-05-14
      • 1970-01-01
      • 2013-04-12
      • 2010-09-13
      • 2017-09-21
      • 1970-01-01
      相关资源
      最近更新 更多