摘要: private static ArrayList<InformationDetailVo> removeDuplicate(List<InformationDetailVo> list) { Set<InformationDetailVo> set = new TreeSet<>(Comparato 阅读全文
posted @ 2018-09-10 16:24 qwer78 阅读(24) 评论(0) 推荐(0)
摘要: @GetMapping({"/addSearchIndexBySite"}) public JsonResult addSearchIndexBySite(@RequestParam(required = false) String site) throws SchedulerException, 阅读全文
posted @ 2018-09-04 12:55 qwer78 阅读(355) 评论(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 阅读(409) 评论(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 阅读(164) 评论(0) 推荐(0)
摘要: @Bean LettuceConnectionFactory lettuceConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfigurati 阅读全文
posted @ 2018-08-13 14:54 qwer78 阅读(2545) 评论(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 阅读(67) 评论(0) 推荐(0)
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-websocket</artifactId> </dependency> import org.springframewo 阅读全文
posted @ 2018-07-11 16:11 qwer78 阅读(32) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { String url1 = "http://www.xx.com"; String url2 = "w.xx.com"; String url3 = "https://www.xx.com"; String url4 阅读全文
posted @ 2018-07-05 12:08 qwer78 阅读(133) 评论(0) 推荐(0)