摘要: 列表分片,及并行执行样例 Set<String> ips = Stream.of("1","2","3","4","5","6","7","8","9","10") // 按照2个为一组,进行切片操作 List<List<String>> partition = Lists.partition(Li 阅读全文
posted @ 2021-01-05 11:30 SpecialSpeculator 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1.获取http头对象 // org.springframework.http.HttpHeaders private HttpHeaders getHttpHeaders() { HttpHeaders headers = new HttpHeaders(); headers.setAcceptC 阅读全文
posted @ 2021-01-05 11:16 SpecialSpeculator 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 自己写日志的时候,肯定要写 private final Logger logger = LoggerFactory.getLogger(LoggerTest.class); 每次写新的类,就需要重新写logger 有简单的方式,就是使用@Slf4j注解 首先是在pom中引入: <!--可以引入日志 阅读全文
posted @ 2021-01-05 11:08 SpecialSpeculator 阅读(366) 评论(0) 推荐(0) 编辑