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

nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property of

在工程中用了jpa,但是总是报这个错误,数据库是int类型,但是有null值,在java实体类中用int接受的,所以报了这个错误,应该改用Integer,其它基本类型也是如此

猜你喜欢

转载自blog.csdn.net/u012326462/article/details/81391420