Backend Development
Spring Boot
Subjective
Oct 03, 2025
Explain Spring Boot WebFlux and reactive programming.
Detailed Explanation
WebFlux is reactive web framework:\n\n@RestController\npublic class ReactiveController {\n @GetMapping("/users")\n public Flux getUsers() {\n return userRepository.findAll();\n }\n \n @GetMapping("/users/{id}")\n public Mono getUser(@PathVariable String id) {\n return userRepository.findById(id);\n }\n}\n\nFlux = 0..N elements, Mono = 0..1 element
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts