About springmvc passing value

the value of ajax is passed to the backend, and the bean received by the backend is of boolean type. How do you spell the json of this ajax?
try: {"isQue": true} {"isQue": "true"} doesn"t work well

Sep.26,2021

in the course of the development project, it is found that the field isWater of type boolean in the formal parameter object can never be received. By querying the data, it is found that the parameters of type boolean should not be named at the beginning of is, because the type

The set method of the

parameter is automatically named as the is+ field name, which can cause problems if the field name begins with is.

Menu