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: 状态栏
原文地址:https://www.cnblogs.com/liguo-wang/p/9356270.html