image.png

    https://start.spring.io/

    image.png

    image.png

    image.png

    image.png

    image.png

    1. import org.springframework.web.bind.annotation.RequestMapping;
    2. import org.springframework.web.bind.annotation.RestController;
    3. import reactor.core.publisher.Flux;
    4. import reactor.core.publisher.Mono;
    5. /**
    6. * @author Raint
    7. * @date 2022年04月14日 21:08
    8. */
    9. @RestController
    10. @RequestMapping("/demo")
    11. public class Democontroller {
    12. @RequestMapping("/mono")
    13. public Mono<String> mono() {
    14. return Mono.just("我是Mono");
    15. }
    16. @RequestMapping("/flux")
    17. public Flux<String> flux() {
    18. return Flux.just("我是flux");
    19. }
    20. }