jpa抛异常:PropertyAccessException: Null value was assigned to a property of

时间:2020-12-09 12:07:35   收藏:0   阅读:5

org.springframework.orm.jpa.JpaSystemException: Null value was assigned to a property

org.springframework.orm.jpa.JpaSystemException: Null value was assigned to a property [包名.class.属性名] of primitive type setter of com.udreamtech.admin.system.domain.Staff.acc_per; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property [包名.class.属性名] of primitive type setter of com.udreamtech.admin.system.domain.Staff.acc_per

最近spring-boot+JPA  ing……

错误如上,问题:属性名和数据库内的不一致

                  解决:找对应字段的实体类和数据库的字段是否一致。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!