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