restTemplate 会把复杂的对象转换成 LinkedHashMap,有时会发生参数丢失或其他转化异常。
解决方法:
ResponseEntity<List<CompanyVO>> response = restTemplate.exchange(REST_URL_PREFIX + "/api/v1/getCompanyVOBySubNumber", HttpMethod.POST, req, new ParameterizedTypeReference<List<CompanyVO>>() {});
List<CompanyVO> companyVOList = response.getBody();