摘要: https://blog.csdn.net/qq_39949109/article/details/80432477 Enum类中为什么构造函数必须是私有的? 枚举被设计成是单例模式,即枚举类型会由JVM在加载的时候,实例化枚举对象,你在枚举类中定义了多少个就会实例化多少个,JVM为了保证每一个枚举 阅读全文
posted @ 2021-09-28 18:16 wujingqi 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-09-28 17:35 wujingqi 阅读(950) 评论(0) 推荐(0) 编辑
摘要: 1、Application 加注解 @EnableAsync 开启异步。 2、需要异步的方法上加注解 @Async。 --不能为静态方法 --调用处不能在同一个类里 https://blog.csdn.net/qq_36827957/article/details/105087856 https:/ 阅读全文
posted @ 2021-09-28 17:17 wujingqi 阅读(1368) 评论(0) 推荐(0) 编辑
摘要: @Data 在JavaBean或类JavaBean中使用,包含@ToString, @EqualsAndHashCode, @Getter, @Setter 这个是继承时的使用@Data的坑。 @getter 生成getter 方法 @setter 生成setter方法 @NoArgsConstru 阅读全文
posted @ 2021-09-28 17:13 wujingqi 阅读(78) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_38377774/article/details/90020343 阅读全文
posted @ 2021-09-28 15:59 wujingqi 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 点我 阅读全文
posted @ 2021-09-28 15:01 wujingqi 阅读(95) 评论(0) 推荐(0) 编辑