Solve the warning of org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error

1. Reproducing the error


Today, write the back-end simulated order interface, as shown in the following code:

@PostMapping("/placeOrder")
public void placeOrder(@RequestBody OrderDto orderDto) {
   
    
    
  // 校验商品名称和商品价格不能为空
 

Guess you like

Origin blog.csdn.net/lvoelife/article/details/134147277