2022年7月28日
摘要:
学此方法前先了解 “2的n次幂” 2的0次幂对应1,2的1次幂对应2.以此。。。。。。 1,2,4,8,16,32.。。。 eg1:23 距离23最近的2的次幂的数是“16”,由此有以下推演 模板: 16 8 4 2 1 二进制:1 0 1 1 1 原因:为什么是“10111”, 16+4+2+1=
阅读全文
posted @ 2022-07-28 09:16
隔壁老王(加速版)
阅读(553)
推荐(0)
2022年7月11日
摘要:
数组转集合 String[] s = new String[]{"A", "B", "C", "D","E"}; List<String> list = Arrays.asList(s); List Set互转 List转SetSet<String> set = new HashSet<>(list
阅读全文
posted @ 2022-07-11 13:17
隔壁老王(加速版)
阅读(120)
推荐(0)
2022年7月5日
摘要:
public class User{ private Card card_one; //一对一 使用association ,查询结果集是一个类 private List<Card> card_many; //一对多 使用collection , 查询结果集是一个集合 }
阅读全文
posted @ 2022-07-05 09:37
隔壁老王(加速版)
阅读(24)
推荐(0)
2022年6月29日
摘要:
a="+$("#a").val()+"&b="+$("#b").val()
阅读全文
posted @ 2022-06-29 08:58
隔壁老王(加速版)
阅读(37)
推荐(0)
2022年6月20日
摘要:
Set<String> faceList=new TreeSet<>(); List<Integer> faceListk = faceList.stream().map(Integer::parseInt).collect(Collectors.toList());
阅读全文
posted @ 2022-06-20 10:03
隔壁老王(加速版)
阅读(101)
推荐(0)
2022年5月20日
摘要:
1 LIKE '%${name}%' 2 LIKE "%"#{name}"%" 3 LIKE CONCAT('%',#{name},'%')
阅读全文
posted @ 2022-05-20 14:50
隔壁老王(加速版)
阅读(148)
推荐(0)
2022年5月18日
摘要:
方式一<select id="productName" name="productName" path="productName" style="width: 150px"> <option value="">请挑选</option> <c:forEach items="${page}" var="
阅读全文
posted @ 2022-05-18 14:27
隔壁老王(加速版)
阅读(325)
推荐(0)
2022年5月11日
摘要:
<select id="userId" name="userId" style="width: 200px" > <option value=""> 请挑选 </option> <c:forEach items="${page.list}" var="u"> <option value="${u.u
阅读全文
posted @ 2022-05-11 16:04
隔壁老王(加速版)
阅读(50)
推荐(0)
2022年4月14日
摘要:
Calendar cld = Calendar.getInstance();//开始时间,从前端页面获取到的Date starDate = device.getStartDate();cld.setTime(starDate);//从前端获取到的要间隔的时间长度int month = Integer
阅读全文
posted @ 2022-04-14 14:40
隔壁老王(加速版)
阅读(264)
推荐(0)
2022年3月16日
摘要:
原因是在xml文件里面“<”会被解析成新的元素开始 错误写法 报错 tag name expected <if test="name != null and name != ''"> AND name < #{name}</if>解决方案如下:1: <if test="name != null an
阅读全文
posted @ 2022-03-16 16:24
隔壁老王(加速版)
阅读(851)
推荐(0)