📅  最后修改于: 2022-03-11 14:56:51.410000             🧑  作者: Mango
@Repository
@Override
public Mono getJobById(Long id) {
if(jobStores.get(id) == null) throw new ClientNotfoundException();
return Mono.just(jobStores.get(id)).onErrorResume(e -> Mono.error(new ClientNotfoundException("Correct ID is required"+e)));
}