摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-quartz</artifactId> </dependency> import org.quartz.Scheduler 阅读全文
posted @ 2018-10-08 09:45 qwer78 阅读(47) 评论(0) 推荐(0)
摘要: POST property_sql/property_info/_update_by_query { "script": { "lang": "painless", "inline": "ctx._source.published = 1" } } 效果 阅读全文
posted @ 2018-09-26 16:03 qwer78 阅读(70) 评论(0) 推荐(0)
摘要: private static ArrayList<InformationDetailVo> removeDuplicate(List<InformationDetailVo> list) { Set<InformationDetailVo> set = new TreeSet<>(Comparato 阅读全文
posted @ 2018-09-10 16:24 qwer78 阅读(22) 评论(0) 推荐(0)
摘要: @GetMapping({"/addSearchIndexBySite"}) public JsonResult addSearchIndexBySite(@RequestParam(required = false) String site) throws SchedulerException, 阅读全文
posted @ 2018-09-04 12:55 qwer78 阅读(353) 评论(0) 推荐(0)
摘要: String id = null; try {SearchRequest request = new SearchRequest(IndexAndTypeConstant.PROPERTY_SQL); request.types(IndexAndTypeConstant.PROPERTY_SQL_T 阅读全文
posted @ 2018-08-29 16:11 qwer78 阅读(139) 评论(0) 推荐(0)
摘要: 1 自定义citycode.properties #List properties citycode.list[0]=www citycode.list[1]=localhost citycode.list[2]=wuhan citycode.list[3]=tianjin #Map Propert 阅读全文
posted @ 2018-08-17 16:33 qwer78 阅读(406) 评论(0) 推荐(0)
摘要: 我用的2.6.0版本 <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-pool2</artifactId> </dependency> import org.apache.commons.pool2.imp 阅读全文
posted @ 2018-08-16 10:25 qwer78 阅读(163) 评论(0) 推荐(0)
摘要: @Bean LettuceConnectionFactory lettuceConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfigurati 阅读全文
posted @ 2018-08-13 14:54 qwer78 阅读(2542) 评论(0) 推荐(0)
摘要: 比如传11会返回 1 2 8 + 11 public static String binaryString(String nums) { try { Integer num = Integer.valueOf(nums); int bit = 1; List<Integer> ret = new A 阅读全文
posted @ 2018-07-26 17:36 qwer78 阅读(26) 评论(0) 推荐(0)
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> package cc.datebook.sock 阅读全文
posted @ 2018-07-11 17:43 qwer78 阅读(64) 评论(0) 推荐(0)