Mono switchIfEmpty() is always executed

后端 未结 0 1948
滥情空心
滥情空心 2021-01-29 04:16

I would like to do something like this:

if (someObject == null) {
    return Mono.just(someId)
      .flatMap(si -> service.monoVoidMethod(si));
}
return Mono.         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题