2024-03-08 15:50:20.348 INFO 79028 --- [nio-9603-exec-9] c.t.takeOut.controller.ShopController : /api/shop/listSearch in ...
2024-03-08 15:50:20.423 DEBUG 79028 --- [nio-9603-exec-9] c.t.t.mapper.ShopMapper.selectList : ==> Preparing: SELECT id,name,phone,principal_name,start_hours,end_hours,address,image,distribution_type,audit_status,application_instructions,description,business_license,industry_license,invoke_flag,create_time,update_time,update_user_id FROM ty_shop WHERE (invoke_flag = ?)
2024-03-08 15:50:20.426 DEBUG 79028 --- [nio-9603-exec-9] c.t.t.mapper.ShopMapper.selectList : ==> Parameters: 1(Integer)
2024-03-08 15:50:20.441 DEBUG 79028 --- [nio-9603-exec-9] c.t.t.mapper.ShopMapper.selectList : <== Total: 5
2024-03-08 15:50:21.616 ERROR 79028 --- [io-9603-exec-10] c.t.t.handler.GlobalExceptionHandler : 捕获异常:
org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public com.tengyuan.takeOut.model.resp.Result<java.util.List<com.tengyuan.takeOut.model.resp.DishCategorySearchResp>> com.tengyuan.takeOut.controller.DishCategoryController.listSearch(com.tengyuan.takeOut.model.param.DishCategorySearchParam)
at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.readWithMessageConverters(RequestResponseBodyMethodProcessor.java:163) ~[spring-webmvc-5.3.23.jar:5.3.23]
at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.resolveArgument(RequestResponseBodyMethodProcessor.java:133) ~[spring-webmvc-5.3.23.jar:5.3.23]
at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:122) ~[spring-web-5.3.23.jar:5.3.23]
at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:179) ~[spring-web-5.3.23.jar:5.3.23]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:146) ~[spring-web-5.3.23.jar:5.3.23]
发现原来是大意了,前端发送时没携带参数