Skip to content

Commit e618804

Browse files
Added Hystrix Dashboard
1 parent d8e92f9 commit e618804

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎spring-cloud-hystrix/spring-cloud-hystrix-rest-consumer/pom.xml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
<artifactId>spring-cloud-starter-hystrix</artifactId>
2424
<version>1.1.5.RELEASE</version>
2525
</dependency>
26+
<dependency>
27+
<groupId>org.springframework.cloud</groupId>
28+
<artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
29+
<version>1.1.5.RELEASE</version>
30+
</dependency>
2631
<dependency>
2732
<groupId>org.springframework.boot</groupId>
2833
<artifactId>spring-boot-starter-web</artifactId>
@@ -33,6 +38,11 @@
3338
<artifactId>spring-boot-starter-thymeleaf</artifactId>
3439
<version>1.4.0.RELEASE</version>
3540
</dependency>
41+
<dependency>
42+
<groupId>org.springframework.boot</groupId>
43+
<artifactId>spring-boot-starter-actuator</artifactId>
44+
<version>1.4.0.RELEASE</version>
45+
</dependency>
3646
</dependencies>
3747

3848
<dependencyManagement>

‎spring-cloud-hystrix/spring-cloud-hystrix-rest-consumer/src/main/java/com/baeldung/spring/cloud/hystrix/rest/consumer/RestConsumerApplication.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@
44
import org.springframework.boot.SpringApplication;
55
import org.springframework.boot.autoconfigure.SpringBootApplication;
66
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
7+
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
8+
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
79
import org.springframework.stereotype.Controller;
810
import org.springframework.ui.Model;
911
import org.springframework.web.bind.annotation.PathVariable;
1012
import org.springframework.web.bind.annotation.RequestMapping;
1113

1214
@SpringBootApplication
1315
@EnableCircuitBreaker
16+
@EnableHystrixDashboard
1417
@Controller
1518
public class RestConsumerApplication {
1619
@Autowired

0 commit comments

Comments
 (0)