postman測試方法的 時候總是出現狀態碼500


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

status   ['steɪtəs]   詳細 X
基本翻譯
n. 地位;狀態;情形;重要身份
網絡釋義
Status: 狀態
marital status: 婚姻狀況
status bar: 狀態欄


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM