#java#spring#webflux#入门#编程#
Spring WebFlux web的基本应用
视频讲解: https://www.bilibili.com/video/av82028626/
WebfluxApplication.java
package com.example.webflux;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
@SpringBootApplication
public class WebfluxApplication extends BaseApplication{
public static void main(String[] args) { SpringApplication.run(WebfluxApplication.class, args); }
@RestController
class EmployeeController{