Skip to content

Instantly share code, notes, and snippets.

Created September 23, 2017 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b067f777ce28bdaab56adb045d724879 to your computer and use it in GitHub Desktop.
Save anonymous/b067f777ce28bdaab56adb045d724879 to your computer and use it in GitHub Desktop.
@EnableCircuitBreaker
@RestController
@SpringBootApplication
public class CampaignApplication {
@Autowired
private TrackingService trackingService;
@Bean
public RestTemplate rest(RestTemplateBuilder builder) {
return builder.build();
}
@RequestMapping("/to-track")
public String toTrack() {
return trackingService.getStats();
}
public static void main(String[] args) {
SpringApplication.run(ReadingApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment