重新设计无法使用的特殊字符

时间:2018-10-18 12:03:28

标签: postman

下面是我给邮递员的ebx网址。

http://sw-frmv-225882.abc.abc/ItempackageCodeanditemCode?
    filter=PackageCode="TEST+RM+OFFRE+10%25%2BS%26A" and ProductCode="CAR" and ItemDesc="lLOS+TICKET-Hopper+Ticket%28Hopper+Ticket%29"
    &includeLabel=no&includeSelector=false&includeDetails=false.

下面是我的Java代码:

String response = "";
RestTemplate template = new RestTemplate();
template.getMessageConverters()
    .add(0, new StringHttpMessageConverter(Charset.forName("UTF-8")));
template.getInterceptors()
    .add(new BasicAuthorizationInterceptor(username, password));
HttpHeaders headers = new HttpHeaders();
headers.setAccept(Lists.newArrayList(MediaType.APPLICATION_JSON));
ResponseEntity<String> response1 = template.exchange(ebxURL, HttpMethod.GET, new HttpEntity<String>(headers), String.class);
return response1.getBody();

但是我没有得到答复,您能帮助我理解为什么吗?

请检查数据也ebx中是否存在数据,并且我正在使用上面的URL来获取响应,所以当我在邮递员上点击它时,我正在使用带有特殊字符的上面的URL来获取数据。

enter image description here

0 个答案:

没有答案
相关问题