我在springboot中有一个带有嵌入式tomcat的rest控制器。控制器正在从asp.net应用程序调用,他们正在检查statusdescription是否为“ok”。我的数据响应正常,但状态描述总是空字符串。
有没有办法得到状态描述?
api示例:
@GetMapping(value = "/updateStatus", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<CheckStatusResponse> updateStatusResponse(@RequestParam(value = "TransactionId", required = false) String transactionID,
@RequestParam(value = "VenderId", required = false) String vendorId,
@RequestParam(value = "Status", required = false) String transactionStatus,
@RequestParam(value = "BcCode", required = false) String bcId,
@RequestParam(value = "rrn", required = false) String rrn) {
AepsTransaction transaction = new AepsTransaction();
transaction.setTransactionId(transactionID);
transaction.setTransactionStatus(transactionStatus);
transaction.setRrn(rrn);
transaction.setBcId(bcId);
return new ResponseEntity<>(aepsService.upDateStatusCallBackHandeling(transaction), HttpStatus.OK);
}
1条答案
按热度按时间f0brbegy1#
我找到了答案。对于高于8.5的tomcat版本,会出现此问题。如果您将tomcat降级到8.0,问题就解决了