目标路由信息如下:
@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中手动拼接。
public class test { public static void main(String[] args) { &...
public class test { public static void main(String[] args) { &...
java限制1个方法同一时间只能被一个线程访问public synchronized void setOrderPay(){ }加上synchronized 修饰符即可...
在java中字符串属于对象,刚开始我就疑惑为什么int char等类型都是小写,结果String是大写,java太反人类,后来才知道String是对象。(1).java创建字符串String text = "net"; String tex...
java stringBuffer(1).stringBuffer和stringBuilder区别stringBuffer是线程安全的,stringBuilder速度更快(2).简单的stringBuffer例子StringBuffer sBuffer = new&nb...
(1).创建数组double[] myList = new double[size]; //推荐创建方式 double myList[] = new double[size];  ...