I want to change default开发者_如何学运维 value for int
property to empty field not 0. How can I do it?
You need to use Integer
class and not int for that.
An int
will always be initialized to 0 It can't be null.
I want to change default开发者_如何学运维 value for int
property to empty field not 0. How can I do it?
You need to use Integer
class and not int for that.
An int
will always be initialized to 0 It can't be null.
精彩评论