会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RedOrange
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
2023年2月7日
redis各种数据类型进行操作
摘要: 1.数据操作Dao /** * RedisManager 操作类 * 使用SpringDataRedis进行整合 * * @author yy * @since 1.0.0, 2019年08月20日 */ @Component public class RedisManager { @Resourc
阅读全文
posted @ 2023-02-07 08:40 黄橙
阅读(73)
评论(0)
推荐(0)
2023年2月6日
list集合(String字符串)去重的三种方式
摘要: 方式一: List<String> listTemp = new ArrayList<String>(); for(int i=0;i<list.size();i++){ if(!listTemp.contains(list.get(i))){ listTemp.add(list.get(i));
阅读全文
posted @ 2023-02-06 16:12 黄橙
阅读(3388)
评论(0)
推荐(0)
java8 list取出重复值
摘要: @Test public void test10(){ //根据device_code去重,取出重复值 List<Employee> emps =new ArrayList<>(); List<String> dupList = emps.stream().collect(Collectors.gr
阅读全文
posted @ 2023-02-06 16:12 黄橙
阅读(980)
评论(0)
推荐(0)
java8 两个相同list去重,过滤相同元素
摘要: @Test public void test12(){ // 需要过滤的集合 List<Employee> first = Arrays.asList( new Employee(102, "李四", 79, 6666.66, Status.BUSY), new Employee(101, "张三"
阅读全文
posted @ 2023-02-06 16:11 黄橙
阅读(554)
评论(0)
推荐(0)
mybatis 表与表 关联查询 (二)
摘要: Mapper @Mapper public interface EmpMapper { /** * 查询所有的职工信息 */ List<Emp> getAllEmp(); /** * 查询职工及职工所对应的部门信息 */ Emp getEmpAndDept(@Param("eid") Integer
阅读全文
posted @ 2023-02-06 16:11 黄橙
阅读(26)
评论(0)
推荐(0)
mybatis-plus返回map自动转驼峰配置
摘要: (一) mybatis-plus自带map下划线转驼峰配置类 我们只需要在yml中配置一下object-wrapper-factory指定MybatisMapWrapperFactory就可以了 mybatis-plus: mapper-locations: classpath:mapper/*Ma
阅读全文
posted @ 2023-02-06 16:11 黄橙
阅读(704)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
公告