Guest User

Untitled

a guest
Dec 18th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @Configuration
  2. @ComponentScan(basePackages = "com.aakhmerov.test.flux")
  3. @EnableWebFlux
  4. public class FluxConfig {
  5. }
  6.  
  7. @RestController
  8. @RequestMapping(value = "/flux/status")
  9. public class FluxStatusRestService {
  10.  
  11. @Autowired
  12. private StatusCheckingService statusCheckingService;
  13.  
  14. @GetMapping("/connection")
  15. public Mono<ConnectionStatusDto> getConnectionStatus() {
  16. ConnectionStatusDto result =
  17. statusCheckingService.getConnectionStatus();
  18. return Mono.just(result);
  19. }
  20. }
Add Comment
Please, Sign In to add comment