10 2022 档案

webflux 把返回的Flux对象转换成Mono对象
摘要:在使用一个对象列表时用Flux public Mono<ServerResponse> listPeople(ServerRequest request) { Flux<Person> people = repository.allPeople(); return ok().contentType( 阅读全文

posted @ 2022-10-27 20:33 白衣风云 阅读(1405) 评论(0) 推荐(0)

webFlux 路由post请求时依赖注入字段报null
摘要:有下列代码: @Autowired AuthHandler authHandler; RouterFunction<ServerResponse> doctorRouter = RouterFunctions.route() .path("/doctors", b1 -> b1 .nest(acce 阅读全文

posted @ 2022-10-26 10:23 白衣风云 阅读(88) 评论(0) 推荐(0)

导航