GitDengweijun opened a new issue #1278: cse 下载的sdk demo怎么用responseEntity返回自定义的headers和httpstatus URL: https://github.com/apache/servicecomb-java-chassis/issues/1278 1. 代码 @RequestMapping(value = "/helloworld", produces = { "application/json" },method = RequestMethod.POST) public ResponseEntity<String> helloworldFail2(HttpServletRequest request,String body) { HttpHeaders headers = new HttpHeaders(); headers.add("test-dwj","chuncked"); return new ResponseEntity<>("test",headers,HttpStatus.BAD_REQUEST); } 2. 结果 status code是 590 { "message": "Cse Internal Server Error" }
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
