postman測試方法的 時候老是出現狀態碼500
{
"timestamp": "2018-07-23T05:43:51.773+0000",
"status": 500,
"error": "Internal Server Error",
"message": "could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement",
"path": "/tag/delete"
}
注意返回值爲對象的話 ,須要在映射前面加註解@ResponseBody
@ResponseBody
基本翻譯
n. 地位;狀態;情形;重要身份