When a recent project defines VO, the boolean data is defined as Isproperty type, resulting in an error during data interaction between systems.
The internet has been crawling for a long while:
The JavaBean naming convention specifies that for primitive and custom class type property (lowercase), getter and setter methods are GetProperty and SetProperty (the first letter becomes uppercase, Before adding a get or set). For properties of type Boolean, the Getter method can also be written as Isproperty (GetProperty is still available), and, if the first two letters of the property are is (two lowercase), The getter is exactly the same as the property (for example, the getter of the above attribute IsActive is IsActive ()).
If there is a Boolean property called Isisactive, what about its getter? The answer is still isisactive ()
So, whether the property name is IsActive or active,getter can only be isactive () or getactive (), JSP can only be accessed with ${user.active} (note case).
The best thing to do is not to use "is" as the beginning to name a Boolean-type property to avoid confusion.
About Java attribute field naming