目标路由信息如下:
@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'、'$'、'&'等。一般在英文...
public class test { public static void main(String[] args) { &...
(1).final 修饰符通常和 static 修饰符一起使用来创建类常量。(2).父类中的 final 方法可以被子类继承,但是不能被子类重写,声明 final 方法的主要目的是防止该方法的内容被修改。public class Member {  ...
System.out.println("当前时间戳(秒): " + System.currentTimeMillis()/1000); System.out.println("当前时间戳(毫秒): " +&nb...
pattern表示正则表达式,接收正则表达式作为参数例子:String content = "my name is gaojiufeng"; String pattern = "....
(7).java方法重载一个类的两个方法拥有相同的名字,但是有不同的参数列表,叫做方法重载,例如public static int sum(int a, int b) { retur...