Solution: The front end passes the value true or false and the back end is always false

Background: Encountered a pit, the front end transmits isTop: true, the back end is always fasle (the back end uses private boolean isTop;)

Reasons: 1. The backend must use the Boolean type for isTop to respond correctly;

           2. Modify private boolean top; because is will be serialized, so can not find isTop

 

Suggestion: For front-end and back-end interactive fields, it is best not to use the is*** field, or use the int type 1.0 as true/false. Many details of the pit

       

Guess you like

Origin blog.csdn.net/qq_39809613/article/details/109674387