摘要: 直接上 import cn.hutool.core.date.DateTime; import cn.hutool.core.util.RandomUtil; import cn.hutool.core.util.ReflectUtil; import com.google.common.colle 阅读全文
posted @ 2024-04-16 19:46 大哥超帅 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1. 首先打开ide选择帮助 点击查找 2. 选择相应功能 输入choose,此时会提示选择运行时 3. 选择运行时 此时选择非idea自带的runtime,即非JetBrains标记的jdk 4. 查看结果 重启后有极大概率丢失菜单选项,恢复的方法是重新选择运行时 官方文档 阅读全文
posted @ 2024-01-08 16:31 大哥超帅 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 具体api格式请参照你当前使用的github api 版本 1. 准备组装必要参数 1.基本参数 在header中需要包含验证token 2. 功能参数 #{baseApi}/#{org}/#{repo}/功能参数?since=#{date}&until=#{date}&per_page=#{num 阅读全文
posted @ 2023-11-27 14:18 大哥超帅 阅读(12) 评论(0) 推荐(0) 编辑
摘要: ```java //这行根据需求发挥 ExecutorService cachedPool = new ThreadPoolExecutor(6, 1000, 60L, TimeUnit.SECONDS, new SynchronousQueue(true)); ConcurrentLinkedQu 阅读全文
posted @ 2023-09-06 16:57 大哥超帅 阅读(11) 评论(0) 推荐(0) 编辑
摘要: > 以下包含AI创作 - ExecutorService用法 ```java try (var executor = Executors.newVirtualThreadPerTaskExecutor()) { var future1 = executor.submit(() -> fetchURL 阅读全文
posted @ 2023-08-16 15:02 大哥超帅 阅读(59) 评论(0) 推荐(0) 编辑
摘要: ```sh if [[ "${GIT_BRANCH}" == "xxx" ]]; then TAG_VERSION="V"$(mvn -Dexec.executable='echo' -Dexec.args='${project.version}' --non-recursive exec:exec 阅读全文
posted @ 2023-06-21 15:58 大哥超帅 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 此特性还在孵化,后续版本可能有变动 //全部执行直到有失败的任务 String handle() throws ExecutionException, InterruptedException { try (var scope = new StructuredTaskScope.ShutdownOn 阅读全文
posted @ 2023-04-26 17:38 大哥超帅 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 实测最新的idea 2023.1 ue 自带maven镜像加速,没必要再配置国内的镜像源 阅读全文
posted @ 2023-04-24 09:55 大哥超帅 阅读(52) 评论(0) 推荐(0) 编辑
摘要: //方法引用与函数试接口 //前提,lambda是特定匿名内部类(只有一个方法需要实现的接口,也就是函数式接口)的简化,方法引用是lambda的简化 //因为executor是函数式接口,所以实例化的方法只能是 void execute(Runnable command); 如2 所以 2可以简化成 阅读全文
posted @ 2023-04-20 14:54 大哥超帅 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 注意:由于使用方式的限制,这种值的传递只能单向 由于特性还在孵化阶段 用法可能在21中有变动 static final ScopedValue<Long> scopedValue = ScopedValue.newInstance(); // test scoped value @Test publ 阅读全文
posted @ 2023-04-06 17:57 大哥超帅 阅读(415) 评论(0) 推荐(0) 编辑