java报错:Null value was assigned to a property of primitive:

解决办法:

xml中int改成java.lang.Integer
java中int改成Integer

同理:

xml中long改成java.lang.Long
java中long改成Long

xml中string改成java.lang.String
java中string改成String

你可能感兴趣的:(java,报错)