@Bean
public RouterFunctionMapping routerFunctionMapping(){
return new RouterFunctionMapping();
}
@Bean
public HandlerFunctionAdapter handlerFunctionAdapter(){
return new HandlerFunctionAdapter();
}
@Bean
public RouterFunction<ServerResponse> r1(){
// 建立一个匹配条件
return RouterFunctions.route(RequestPredicates.GET("/r1"), request -> ServerResponse.ok().body("this is r1"));
}