随笔分类 -  java

摘要:情况1 <update id="" parameterType=""> update tb_thread set isDelete=0 where threadId in ( <foreach collection="list" item="item" index="index" open="" c 阅读全文
posted @ 2020-03-31 15:03 又又IT 阅读(15845) 评论(0) 推荐(0)
摘要:Description:The Tomcat connector configured to listen on port 8761 failed to start. The port may already be in use or the connector may be misconfigur 阅读全文
posted @ 2020-03-31 13:16 又又IT 阅读(426) 评论(0) 推荐(0)
摘要:后端分页框架:PageHelper 但是有时后端的框架不能满足我们的分页要求,所以我格局自己的业务需求封装了一个分页的工具类 package com.jdzapp.common.utils; import java.util.List; /** * 自定义List分页工具 * @author ws 阅读全文
posted @ 2020-03-26 13:44 又又IT 阅读(3212) 评论(0) 推荐(0)
摘要:问题: Tale(实体) List1<Tale> List2<Tale> list1.removeAll(list2); list1的size没有改变原因:removeAll 的执行流程 发现 自定义对象的equals()方法使用的是 Object的equals()方法,比较的是对象在JVM中的内存 阅读全文
posted @ 2020-03-25 17:31 又又IT 阅读(1463) 评论(0) 推荐(0)
摘要:springboot error:Error running 'JdzSystemApplication': Command line is too long. Shorten command line for JdzSystemApplication or also for Spring Boot 阅读全文
posted @ 2020-03-25 16:57 又又IT 阅读(647) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-25 13:51 又又IT 阅读(609) 评论(0) 推荐(0)
摘要:String che = "生产用车";Integer Isjwct = 0;String mk = che.equals("生产用车") ? (Isjwct.equals(0) ? "m2" : "m3") : null;System.out.println(mk); 阅读全文
posted @ 2020-03-24 15:35 又又IT 阅读(4819) 评论(0) 推荐(0)
摘要:TableA、TableB 是根据json数据创建的实体类 建议将json数据放到json.cn 里面格式化 json-lib是一个java类库,提供将Java对象,包括beans, maps, collections, java arrays and XML等转换成JSON,或者反向转换的功能。 阅读全文
posted @ 2020-03-24 14:19 又又IT 阅读(12005) 评论(0) 推荐(0)
摘要:json-lib提供了两个jdk版本的实现, json-lib-2.*-jdk13.jar和json-lib-2.*-jdk15.jar,需要增加classifier配置来解决问题,具体pom.xml文件增加如下信息即可: <dependency> <groupId>net.sf.json-lib< 阅读全文
posted @ 2020-03-24 14:12 又又IT 阅读(841) 评论(0) 推荐(0)
摘要:fieldsLists.removeAll(fieldsRestturnLists); SimplePropertyPreFilter filter = new SimplePropertyPreFilter(); filter.getExcludes().addAll(fieldsLists); 阅读全文
posted @ 2020-03-16 17:41 又又IT 阅读(658) 评论(0) 推荐(0)
摘要://截取字符串 String[] propertyIdListString = jdzPortArgumentsVO.getPropertyIdList().split(","); //string 转为 long List<Long> propertyIdList = Arrays.stream( 阅读全文
posted @ 2020-03-16 17:38 又又IT 阅读(8110) 评论(0) 推荐(0)