上一页 1 ··· 4 5 6 7 8
摘要: 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)
摘要: 方式一: 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)
摘要: @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)
摘要: @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)
摘要: 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下划线转驼峰配置类 我们只需要在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