目标路由信息如下:
@ApiOperation(value = "查询需求单-是否存在", notes = "查询需求单-是否存在") @PostMapping(value = "/query/exist/{billsId}", produces = "application/json;charset=UTF-8") public IndentExistApiResponse queryExist(@PathVariable String billsId) { return service.doService(IndentMainExistApiHookImpl.class, billsId); }
调用方式1:
@Override public boolean queryIndentBillsExist(String billsId) { if (billsId == null) { BusinessException.of("QuotaSdkServiceImpl-queryIndentBillsExist-01", "请求参数不能为空"); } ResponseEntity<QuotaExistApiResponse> postForEntity = restTemplate.postForEntity(home + "/bills/indents/api/query/exist/{billsId}",null , QuotaExistApiResponse.class,billsId); if(postForEntity == null || postForEntity.getBody() == null ){ BusinessException.of("QuotaSdkServiceImpl-queryIndentBillsExist-01", "查询需求单"+billsId+"失败,未正确响应结果"); } return postForEntity.getBody().isExist(); }
最后1个参数billsId来填充,也可以直接在url中手动拼接。
字节(Byte)是计量单位,表示数据量多少,是计算机信息技术用于计量存储容量的一种计量单位,通常情况下一字节等于八位。字符(Character)计算机中使用的字母、数字、字和符号,比如'A'、'B'、'$'、'&'等。一般在英文...
Java5 引入了一种主要用于数组的增强型 for 循环,类似js中的for inpublic class Member { public static void main(String[]&...
java判断字符是否是一个字母System.out.println(Character.isLetter('a'));java判断字符是否是一个数字System.out.println(Character.isDigit('0'));java判断字符是否是一个空白Sy...
java stringBuffer(1).stringBuffer和stringBuilder区别stringBuffer是线程安全的,stringBuilder速度更快(2).简单的stringBuffer例子StringBuffer sBuffer = new&nb...
(1).java获取当前日期时间Date date = new Date(); System.out.println(date.toString());输出Fri Jul 02 10:29:55 CST 2021(2).java获取时间戳秒/毫秒D...
java正则表达式的捕获组捕获组可以将匹配到的结果根据正则中的括号进行分组,这里变量我加了$符,php转java的坏习惯,懒得改了,能跑就行// 匹配字符串 String $line = "gaojiufeng 1994! ok?...