參考:
https://blog.csdn.net/weixin_37869477/article/details/82762976
https://blog.csdn.net/sswqzx/article/details/84938223
ResponseEntity可以定義返回的HttpStatus(狀態碼)和HttpHeaders(消息頭:請求頭和響應頭)
HttpStatus(狀態碼)https://blog.csdn.net/csdn1844295154/article/details/78980174
HttpHeaders(消息頭:請求頭和響應頭)https://www.cnblogs.com/honghong87/articles/6941436.html
ResponseEntity :標識整個http相應:狀態碼、頭部信息、響應體內容(spring)
@ResponseBody:加在請求處理方法上,能夠處理方法結果值作為http響應體(springmvc)
@ResponseStatus:加在方法上、返回自定義http狀態碼(spring)