主题:自动生成单表修改错误异常

mrshen 2019年05月22日 240

我用自动生成的单表,在修改的时候报错。

6484464 [http-nio-8080-exec-4] WARN  org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver logException 194 - Resolved [org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 2 errorsField error in object 'basicProject' on field 'delFlag': rejected value [0/]; codes [typeMismatch.basicProject.delFlag,typeMismatch.delFlag,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [basicProject.delFlag,delFlag]; arguments []; default message [delFlag]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Integer' for property 'delFlag'; nested exception is java.lang.NumberFormatException: For input string: "0/"]Field error in object 'basicProject' on field 'id': rejected value [12/]; codes [typeMismatch.basicProject.id,typeMismatch.id,typeMismatch.java.lang.Long,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [basicProject.id,id]; arguments []; default message [id]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Long' for property 'id'; nested exception is java.lang.NumberFormatException: For input string: "12/"]]6484473 [http-nio-8080-exec-4] INFO  org.springframework.boot.web.servlet.error.ErrorController getErrorPath 65 - 400:Validation failed for object='basicProject'. Error count: 2[Field error in object 'basicProject' on field 'delFlag': rejected value [0/]; codes [typeMismatch.basicProject.delFlag,typeMismatch.delFlag,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [basicProject.delFlag,delFlag]; arguments []; default message [delFlag]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Integer' for property 'delFlag'; nested exception is java.lang.NumberFormatException: For input string: "0/"], Field error in object 'basicProject' on field 'id': rejected value [12/]; codes [typeMismatch.basicProject.id,typeMismatch.id,typeMismatch.java.lang.Long,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [basicProject.id,id]; arguments []; default message [id]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Long' for property 'id'; nested exception is java.lang.NumberFormatException: For input string: "12/"]]6484474 [http-nio-8080-exec-4] INFO  org.springframework.boot.web.servlet.error.ErrorController getErrorPath 66 - requestPath:/archeology/basicProject/edit.json