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……
错误如上,问题:属性名和数据库内的不一致
解决:找对应字段的实体类和数据库的字段是否一致。
jpa抛异常:PropertyAccessException: Null value was assigned to a property of