上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 35 下一页
摘要: 在更新jenkins后出现提示 This Jenkins instance uses deprecated protocols: JNLP-connect,JNLP2-connect. It may impact stability of the instance. If newer protoco 阅读全文
posted @ 2018-04-02 17:20 lgp20151222 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 一、admin密码未更改情况 1.进入\Jenkins\secrets目录,打开initialAdminPassword文件,复制密码; 2.访问Jenkins页面,输入管理员admin,及刚才的密码; 3.进入后可更改其他管理员密码; 二、admin密码更改忘记情况 1.删除Jenkins目录下c 阅读全文
posted @ 2018-04-02 17:15 lgp20151222 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 直接修改jenkins.xml中arguments的httpPort 然后,重启jenkins。 阅读全文
posted @ 2018-04-02 17:12 lgp20151222 阅读(209) 评论(0) 推荐(0) 编辑
摘要: EXPIRE key seconds 为给定 key 设置生存时间,当 key 过期时(生存时间为 0 ),它会被自动删除。 操作key对生存时间的影响 生存时间可以通过使用 DEL 命令来删除整个 key 来移除,或者被 SET 和 GETSET 命令覆写(overwrite),这意味着,如果一个 阅读全文
posted @ 2018-03-27 15:28 lgp20151222 阅读(463) 评论(0) 推荐(0) 编辑
摘要: public final ObjectMapper mapper = new ObjectMapper(); public static void main(String[] args) throws Exception{ String jsonString = getJsonString(); / 阅读全文
posted @ 2018-03-26 18:05 lgp20151222 阅读(943) 评论(0) 推荐(0) 编辑
摘要: @Component public class ScheduledTasks { @Autowired private ActivityService activityService; // 1000即1s @Scheduled(fixedRate = 1000) public void repor 阅读全文
posted @ 2018-03-26 17:54 lgp20151222 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 最小值 最大值(整数)的随机数 方法1 (数据类型)(最小值+Math.random()*(最大值-最小值+1)) 例: (int)(1+Math.random()*(10-1+1)) //从1到10的int型随数 方法2 (类型)最小值+Math.random()*最大值 for (int i=0 阅读全文
posted @ 2018-03-19 11:29 lgp20151222 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: tar:tar是unix下的打包工具,生成的包通常也用tar作为扩展名,其实tar只是负责打包,不一定有压缩,事实上可以压缩,也可以不压缩,通常你看到xxxx.tar.gz,就表示这个tar包是压缩的,并且使用的压缩算法是GNU ZIP,而xxxx.tar.bz2就表示这个包使用了bzip2算法进行 阅读全文
posted @ 2018-03-16 17:36 lgp20151222 阅读(514) 评论(0) 推荐(0) 编辑
摘要: @Test public void test() { KieServices kieServices = KieServices.Factory.get(); KieResources resources = kieServices.getResources(); KieModuleModel kieModuleModel = kieS... 阅读全文
posted @ 2018-03-07 11:22 lgp20151222 阅读(1486) 评论(0) 推荐(0) 编辑
摘要: 问题产生原因 首先,使用spring-cloud搭建微服务的过程大部分是根据网上的教程来的,由于网上教程的时间较早,而spring-cloud更新迭代较快,会造成依赖上的一些问题。教程中的spring-cloud的依赖是 <dependency> <groupId>org.springframewo 阅读全文
posted @ 2018-03-07 11:05 lgp20151222 阅读(455) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 35 下一页