Loading

摘要: ![](https://img2022.cnblogs.com/blog/1665017/202208/1665017-20220829173758504-196823425.png) 阅读全文
posted @ 2022-08-29 17:38 半瓶牛奶🥛 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1.使用@Async注解 使用@Async注解就能简单的将原来的同步函数变为异步(注:@Async所修饰的函数不要定义为static类型,这样异步调用不会生效) @Component public class Task { @Async public void doTaskOne() throws 阅读全文
posted @ 2022-08-29 17:22 半瓶牛奶🥛 阅读(33) 评论(0) 推荐(0) 编辑
摘要: //指定泛型类型 Map<String, Class> classMap = new HashMap<>(1); classMap.put("list", WaterPressureHistoryData.class); // WaterPressureHistoryData中包含date类型,js 阅读全文
posted @ 2022-08-29 14:41 半瓶牛奶🥛 阅读(155) 评论(0) 推荐(0) 编辑