Home > Back-end >  Questions about Boolean type conversion
Questions about Boolean type conversion

Time:10-02

In the middle of writing a springboot crud, there is a Boolean value to be and no
How then do modification operations will be converted to Boolean type?
I was made a directly from submitted to judge whether the id will be the same if the whole from the form to submit
But this wrong,
The 2020-03-27 10:02:39. 883 WARN 2656 - [p - nio - 80 - exec - 6]. W.S.M.S.D efaultHandlerExceptionResolver: Resolved [org. Springframework. Validation. BindException: org. Springframework. Validation. BeanPropertyBindingResult: 1 errors
Field, the error in the object on the Field 'user' 'isinum: rejected value [
Is

]; Codes [typeMismatch. User. Isinum, typeMismatch isinum, typeMismatch, Boolean, typeMismatch]; The arguments [org. Springframework. Context. Support. DefaultMessageSourceResolvable: codes [user. Isinum isinum]; the arguments []; the default message [isinum]]. The default message [Failed to convert the property value of type 'Java. Lang. String' to the required type 'Boolean' for the property 'isinum; nested exception is Java. Lang. IllegalArgumentException: Invalid Boolean value [
Is

]]]

The address bar of value is the

http://localhost/saves? Id=222 & amp; The username=222 & amp; Sex=555 & amp; Isinum=% d % 0 0 a + + + + + + + + + + + + + + + + % E6%98% AF % % 0 0 d a + + + + + + + + + + + + + + + + % % 0 0 d a + + + + + + + + + + + +

Angry to hit people QAQ
I say probably,
The teacher said can only be written in the native js or jq to cannot use what framework,
From tr I get a button to the current row data, and then put the data in the form, the radio was discovered this time can't let go in,
Then after modification, click save so as above errors,

CodePudding user response:

Tell the truth, I don't know where you point -

CodePudding user response:

Put down the code, a little didn't understand what the original poster express, front-end submission form, whether id repeat?

CodePudding user response:

You are the type conversion problem, try to use char
  • Related