我想将 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。请有人帮助我。
添加回答
举报
0/150
提交
取消