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
基本翻译
n. 地位;状态;情形;重要身份