1. 程式人生 > >踩坑之路[email protected]傳物件

踩坑之路[email protected]傳物件

在postmen上使用@RequestBody傳物件,接受不到引數。
報錯:
{
“timestamp”: 1542330043448,
“status”: 400,
“error”: “Bad Request”,
“exception”: “org.springframework.http.converter.HttpMessageNotReadableException”,
“message”: “Required request body is missing: public java.lang.String cn.axy.xc.xcshoppingprovider.controller.ShoppingController.addShopping(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,cn.axy.xc.xcshoppingprovider.pojo.ShoppingCart,java.lang.Long)”,
“path”: “/addShopping”
}

怎麼解決呢?