0%

Null-value-was-assigned-to-a-property

文章字数:43,阅读全文大约需要1分钟

报错 org.springframework.orm.jpa.JpaSystemException: Null value was assigned to a property[class xxx.xxx.xxx] of primitive type setter of...

报错原因

jpa实体属性为int类型,但是数据库中的数据为空。无法为属性赋值,所以报错