diff --git a/src/main/java/com/example/jieyue/user/controller/UserCartController.java b/src/main/java/com/example/jieyue/user/controller/UserCartController.java index aaf69e7..7232a42 100644 --- a/src/main/java/com/example/jieyue/user/controller/UserCartController.java +++ b/src/main/java/com/example/jieyue/user/controller/UserCartController.java @@ -62,7 +62,7 @@ public class UserCartController { } @ApiOperation("移除购物车商品") - @PostMapping("/user/del-cart") + @GetMapping("/user/del-cart") public ModelAndView delCart(ModelAndView modelAndView,int id){ int sql = cartMapper.deleteById(id); if (sql == 1){