
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
1、特点可以传入线程的数量,不传入,则默认使用当前计算机中可用的cpu数量能够合理的使用CPU进行对任务操作(并行操作)适合使用在很耗时的任务中底层用的ForkJoinPool 来实现的。 ForkJoinPool的优势在于,可以充分利用多cpu,多核cpu的优势,把一个任务拆分成多个“小任务”分发到不同的cpu核心上执行,执行完后再把结果收集到一起返回。2、创建实例Ex...
JSONArray ja_title = JSONArray.parseArray(sreTitle.getTitle());//第一种ja_title.removeAll(titleList)//第二种Iterator iter = ja_title.iterator();while (iter.hasNext()) {String str = (String) iter.next();if (
1、特点:延时启动 、定时启动 、可以自定义最大线程池数量2、创建实例:ScheduledExecutorService scheduledThreadPool = Executors.newScheduledThreadPool(3);这里如果没有特殊需求要指定最大线程池数量的话,建议最大线程池数量=运行程序机器的cpu核心数,即int cpuNubmer = Run...
1、使用maven-shade-plugin插件打包<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration&g
1、下载最新版all.zip解压2、jenkins-系统管理-全局工具配置-Gradle3、jenkins-系统管理-全局工具配置-gitwindows下载githttps://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/00137396287703354d8c6c01c904c7d9ff0
The following variables are available to shell scriptsBRANCH_NAMEFor a multibranch project, this will be set to the name of the branch being built, for example in case you wish to deploy to production
意思是因为你是从一个非tty环境执行脚本;Jenkins不能正常从你的脚本中退出。
2、如果有乱码,需要定义节点的编码格式,请这样配置。1、系统管理-节点管理-新建节点。3、在job中选择已建好的节点。
1、已登录2、未登录在服务器上找到存储密码的位置:find / -name config.xml打开该配置文件找到<passwordHash>节点vi /var/lib/jenkins/users/admin_2112041072187333941/config.xml将$2a$10$d6oDwJRKYlWQMOKhW/Mi0eNq4xs/utxvfHLeWBUeeXbQLN9vpNh
打开Maven根目录,修改conf文件夹中的settings.xml文件