摘要: controller请求参数添加注解 @Validated({AddGroup.class}) /** * 集中处理所有异常 */@Slf4j//@ResponseBody//@ControllerAdvice(basePackages = "com.atguigu.gulimall.product 阅读全文
posted @ 2021-02-16 12:11 监听员 阅读(42) 评论(0) 推荐(0) 编辑
摘要: public class R extends HashMap<String, Object> { private static final long serialVersionUID = 1L; public R() { put("code", 0); put("msg", "success"); 阅读全文
posted @ 2021-02-16 12:08 监听员 阅读(65) 评论(0) 推荐(0) 编辑