我想追加我的查詢在我的customerDoaImpl文件中的服務url但它沒有返回正確的值。我試圖在服務端使用soapUI進行測試,但是在那裏它將正確的數據返回給我的請求。春天:其餘的webservice調用
我想基於的productId & datePeriod 這裏搜索結果是我的代碼snippet-
url.append(getServiceUrl()).append("/transaction/find/customerrequestv2?id={productId}&dateperiod={Dateperiod}");
服務端控制器 -
@RequestMapping(value = "/find/customerrequestv2", method = RequestMethod.GET,produces = "application/json")
public List<Customer> CustomerRequestv2(@RequestParam(value = "id") final String pProductId,
@RequestParam(value = "dateperiod") final String pDateperiod)
我在做什麼錯在我的查詢?
確保您正在編碼查詢字符串。 –