今天安裝了1.7跑了一趟,并未有出現(xiàn)顯性報錯,可是后端日志產(chǎn)生了報錯信息:
2024-10-30 23:14:44.363 [http-nio-8085-exec-18] ERROR com.zbkj.service.exception.GlobalExceptionHandler - 捕獲到異常:
org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'citySearchRequest' on field 'parentId': rejected value [aaaa'?']; codes [typeMismatch.citySearchRequest.parentId,typeMismatch.parentId,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [citySearchRequest.parentId,parentId]; arguments []; default message [parentId]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Integer' for property 'parentId'; nested exception is java.lang.NumberFormatException: For input string: "aaaa'?'"]
at org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument(ModelAttributeMethodProcessor.java:164)
at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:121)