上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: package com.cxqy.officialserver.dto.personalsub;import org.apache.http.Header;import org.apache.http.HttpEntity;import org.apache.http.NameValuePair;i 阅读全文
posted @ 2021-12-31 15:10 风骚羊肉串 阅读(22) 评论(0) 推荐(0) 编辑
摘要: List<PPSIIResp> influenceIndexRespList = dataServiceDetailMapper.listPPSIIWithCountrys(null); List<PPSIIResp> subList = ppsiiRespList.stream().skip((P 阅读全文
posted @ 2021-12-10 13:51 风骚羊肉串 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1.在本地新建一个文件夹,文件夹名称可以跟远程的 2.将本地的文件夹初始化为一个git仓库:git init 3.与远程仓库建立连接; git remote add origin http://xxxx/.git(远程仓库的地址) 4.把远程分支拉取到本地:git fetch origin dev( 阅读全文
posted @ 2021-12-10 13:51 风骚羊肉串 阅读(16) 评论(0) 推荐(0) 编辑
摘要: (一) 准备 1.0 pom依赖 备注:由于easyExcel自带依赖于3.17的poi,所以如果项目其它地方映入了其它版本的poi,就会导致easyExcel导出失败等一系列问题,主要原因是因为poi版本冲突导致的 <dependency> <groupId>org.apache.poi</gro 阅读全文
posted @ 2021-11-10 16:45 风骚羊肉串 阅读(186) 评论(0) 推荐(0) 编辑
摘要: package com.cxqy.business.modules.help.contsant;import java.text.DateFormat;import java.text.ParseException;import java.text.SimpleDateFormat;import j 阅读全文
posted @ 2021-11-08 15:13 风骚羊肉串 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 如何利用Redis分布式锁处理高并发? 一、添加项目依赖 <!-- redis依赖 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</art 阅读全文
posted @ 2021-10-27 15:17 风骚羊肉串 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 缓存,两个字经常出现在我们的耳旁,它被用作数据的高性能读写,防止每次都需要进行数据库的读写,减少性能消耗。Spring从3.1版本开始就提供了cache支持,SpringBoot更是提供了spring-boot-starter-cache用于我们快速进行缓存开发,支持多种缓存组件整合:Redis、E 阅读全文
posted @ 2021-10-19 15:11 风骚羊肉串 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 将boot版本降低问题原因cloud 依赖版本跟 boot不一致一般情况是 spring boot版本高于cloud版本修改版本即可例如 spring boot 版本是2.4.2其他cloud依赖是 2.4以下 就会报错<parent> <groupId>org.springframework.bo 阅读全文
posted @ 2021-08-17 16:34 风骚羊肉串 阅读(1928) 评论(0) 推荐(0) 编辑
摘要: 1. Collections.swap(list,b,c);(注意:索引为a的元素与索引为b的元素交换位置,其他元素的索引值不变) list是你需要换位置的List。 a是你当前需要换位置的元素的索引。 b是你需要将这个元素换到哪个索引。 2.list.add(0, list.remove(i)); 阅读全文
posted @ 2021-08-03 14:20 风骚羊肉串 阅读(2827) 评论(0) 推荐(0) 编辑
摘要: Hutool是一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅,让Java语言也可以“甜甜的”。 Hutool中的工具方法来自每个用户的精雕细琢,它涵盖了Java开发底层代码中的方方面面,它既是大型项目开发中解决小问题的利器,也 阅读全文
posted @ 2021-07-22 14:04 风骚羊肉串 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页