我想将 Observable 对象转换为 json 对象
ObjectMapper mapper = new ObjectMapper();
Observable<String> response = accountSearchService.searchAccount(paramMap, "", 0, 1);
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
AccountSearchResult resultDto = mapper.convertValue(response.subscribe().toString(), AccountSearchResult.class);
这就是我想要做的,但得到 OnErrorNotImplementedException。请有人帮助我。
相关分类