我将 Netflix Zuul 与 Spring Boot 一起用于路由/代理目的。它侦听在 a 中定义的端口application.yml
:
server:
port: ${port:8080}
我还想使用 Hystrix 进行断路以及拥有 Hystrix 仪表板。我通过以下注释实现了这一点:
@EnableHystrixDashboard
@SpringBootApplication
public class Main {
public static void main(String[] args) {
new SpringApplication(Main.class).run(args);
}
}
现在我可以访问localhost:8080/hystrix
. 另外,我在端口下8181
设置了Spring Actuator,其management.port: 8181
属性位于application.yml
.
我的问题是:
- 是否可以将 hystrix 仪表板放在其他端口下,例如 8181 或任何其他端口?所以我可以确定该端口
8080
仅用于路由/代理目的吗?