Add the Starter with the org.springframework.cloud group and the spring-cloud-starter-netflix-hystrix artifact ID to include Hystrix in your application. Let's see the following Maven dependency in the pom.xml file:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> </dependency>
Add this Maven dependency to your project to include the Hystrix library.