public final class Delete extends ResponseProcessor
@DeleteMapping 的响应处理方法类ok| Constructor and Description |
|---|
Delete() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<java.lang.String> |
error()
创建一个 响应体为空字符串
HttpStatus.INTERNAL_SERVER_ERROR 的
ResponseEntity对象 |
org.springframework.http.ResponseEntity<java.lang.String> |
error(java.lang.Throwable ex)
创建一个
HttpStatus.INTERNAL_SERVER_ERROR 的
ResponseEntity对象 |
org.springframework.http.ResponseEntity<java.lang.String> |
ok()
创建一个 响应体为空字符串
HttpStatus.NO_CONTENT 的
ResponseEntity对象 |
error, error, ok, okpublic org.springframework.http.ResponseEntity<java.lang.String> ok()
HttpStatus.NO_CONTENT 的
ResponseEntity对象ResponseEntity<String>public org.springframework.http.ResponseEntity<java.lang.String> error()
HttpStatus.INTERNAL_SERVER_ERROR 的
ResponseEntity对象ResponseEntity<String>public org.springframework.http.ResponseEntity<java.lang.String> error(java.lang.Throwable ex)
ResponseProcessorHttpStatus.INTERNAL_SERVER_ERROR 的
ResponseEntity对象error in class ResponseProcessorex - 异常对象. code 的值为 500;msg 的值为 ex.getMessage()ResponseEntity<String>