我使用春季啓動1.3.1和春天cloudl Brixtom.M4,雖然使用springboot 1.3.1我發現渦輪AMQP項目不再可用,而是我們現在有了Spring Turbine Stream項目。 我該如何使用SpringTurbine與rabbitmq或kafka,並且想要監視在Zuul中註冊的所有路由的hystrix流,我能夠看到zuul的hystrix.stream,並且能夠在hystrix儀表板中看到該流,但不知道如何使用彈簧渦輪機流。 在網上我找到了使用Turbine AMQP的代碼和文檔。春天雲Zuul CircuitBreaker所有路線通過TurbineStream不渦輪 - AMQP
我有zuul服務器上運行的廣告http://localhost:9003/與depedencies
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zuul</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
和main.java作爲
@SpringBootApplication
@EnableZuulProxy
@EnableCircuitBreaker
public class EdgeServerApplication {
public static void main(String[] args) {
SpringApplication.run(EdgeServerApplication.class, args);
}
}
我也有springTurbinestream項目作爲
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-turbine-stream</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
org.springframework。開機 春季啓動 - 起動器
和主類TurbineStream作爲
@SpringBootApplication
@EnableTurbineStream
@EnableDiscoveryClient
public class WiziqTurbineApplication {
public static void main(String[] args) {
SpringApplication.run(WiziqTurbineApplication.class, args);
}
}
當我運行的應用程序並進入http://localhost:9003/hystrix.stream我看到流,但如果我去http://localhost:9003/turbine.stream怎麼回事錯誤。
我在做什麼錯了?
請提供downvoting的原因:( –
我沒有downvote,但我沒有看到一個編程問題,我可能是錯誤的,但我也認爲它有點廣泛 –
確定不錯,但仍然如果你知道回答請張貼 –