https://start.spring.io/
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/**
* @author Raint
* @date 2022年04月14日 21:08
*/
@RestController
@RequestMapping("/demo")
public class Democontroller {
@RequestMapping("/mono")
public Mono<String> mono() {
return Mono.just("我是Mono");
}
@RequestMapping("/flux")
public Flux<String> flux() {
return Flux.just("我是flux");
}
}