摘要: `/* 统一异常类处理 */ @Slf4j @RestControllerAdvice("com/atguigu/gulimall/product/controller") public class GuliMallExceptionHandler { @ExceptionHandler(value 阅读全文
posted @ 2022-01-11 19:56 叶青云 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 首先在实体类中添加一个可以递归存储的列表 @Data @TableName("pms_category") public class CategoryEntity implements Serializable { private static final long serialVersionUID 阅读全文
posted @ 2022-01-04 13:56 叶青云 阅读(193) 评论(0) 推荐(0) 编辑
摘要: import org.springframework.context.annotation.Configuration;import org.springframework.web.cors.CorsConfiguration;import org.springframework.web.cors. 阅读全文
posted @ 2022-01-04 13:50 叶青云 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 看一下版本对应号,刷新一下pom.xml依赖。注意springboot和springcloud版本号。 阅读全文
posted @ 2022-01-01 21:57 叶青云 阅读(621) 评论(0) 推荐(0) 编辑
摘要: /* 1. 定义一个函数式接口NumberToString,其中抽象方法String convert(int num),使用注解@FunctionalInterface 2. 在测试类中定义static void decToHex(int num ,NumberToString nts), 该方法的 阅读全文
posted @ 2020-07-08 12:45 叶青云 阅读(178) 评论(0) 推荐(0) 编辑
摘要: package 递归练习; import java.io.File; public class diGuiBianLiWenJianJia { public static void main(String[] args) { File file = new File("你要遍历的目录"); bian 阅读全文
posted @ 2020-07-04 10:25 叶青云 阅读(286) 评论(0) 推荐(0) 编辑
摘要: import java.util.*; public class NewDouDiZhu { public static void main(String[] args) { HashMap<Integer,String> poker= new HashMap<>(); //1.组装牌 ArrayL 阅读全文
posted @ 2020-07-02 12:04 叶青云 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.ArrayList; 2 import java.util.Collection; 3 import java.util.Collections; 4 5 public class douDiZhu { 6 public static void main(Str 阅读全文
posted @ 2020-06-29 20:55 叶青云 阅读(487) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示