pigbayspy commented on issue #2621:
URL:
https://github.com/apache/servicecomb-java-chassis/issues/2621#issuecomment-963897492
我自己试了可以用这种方法返回异常
```java
@GetMapping("/hello")
public ResponseEntity<?> hello() {
InvocationException exception = new
InvocationException(Response.Status.BAD_REQUEST, "hello");
ResponseEntity<InvocationException> response = new
ResponseEntity<>(exception, HttpStatus.BAD_REQUEST);
return response;
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]