摘要: 1、首先定义一个自定义的异常类 @Data public class BizException extends RuntimeException { private Integer code; //业务异常码 private String msg; //业务异常信息 public BizExcept 阅读全文
posted @ 2025-09-10 14:09 shunnWcs 阅读(5) 评论(0) 推荐(0)