今天安装了1.7跑了一趟,并未有出现显性报错,可是后端日志产生了报错信息:
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)