错误信息:
操作失败,could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.DataExcepti
原因是数据库字段长度的限制!!
还有可能是未存在这个表 这个字段什么的, 主要看sql 还有实体类映射 ,还有表 结构
操作失败,query did not return a unique result: 2; nested exception is javax.
这个就是 接口 本来返回的是对象 但是在数据库 查询出二条数据