随笔分类 -  2021 java

摘要:<insert id="insert" parameterType="com.Football.personal.model.FootballOrders" useGeneratedKeys="true" keyProperty="orderId" keyColumn="order_id"> ins 阅读全文
posted @ 2021-10-25 16:20 才没有木头 阅读(54) 评论(0) 推荐(0)
摘要://将不需要的对象去掉Iterator<TableBean> it = list.iterator();int index = 0;while (it.hasNext()){ TableBean next = it.next(); if (next.getFIELDENNAME().equals(" 阅读全文
posted @ 2021-10-14 10:38 才没有木头 阅读(153) 评论(0) 推荐(0)
摘要:1 List -> Map 设个User类: public class User { private String userName; private String userId; private String userInfo; public User(){} public User(String 阅读全文
posted @ 2021-08-17 18:09 才没有木头 阅读(319) 评论(0) 推荐(0)
摘要:mybatis不能使用 <= >= > < 这些常用符号,要用替代符号判断 特殊字符 替代符号 & &amp; < &lt; > &gt; " &quot; ' &apos; 阅读全文
posted @ 2021-08-13 15:16 才没有木头 阅读(350) 评论(0) 推荐(0)
摘要:配置文件方式 import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;imp 阅读全文
posted @ 2021-07-02 11:00 才没有木头 阅读(216) 评论(0) 推荐(0)
摘要:前端代码 <!DOCTYPE html><html><head> <meta charset="utf-8"> <title></title></head><body><form action="/upload" method="post" enctype="multipart/form-data" 阅读全文
posted @ 2021-07-02 10:58 才没有木头 阅读(186) 评论(0) 推荐(0)
摘要:l链接I: https://www.cnblogs.com/Kevin-ZhangCG/p/14852528.html 在使用 Java 的新特性 Collectors.toMap() 将 List 转换为 Map 时存在一些不容易发现的问题,这里总结一下备查。 空指针风险 java.lang.Nu 阅读全文
posted @ 2021-06-16 16:58 才没有木头 阅读(661) 评论(0) 推荐(0)
摘要:Mybatis批量插入需要foreach元素。foreach元素有以下主要属性: (1)item:集合中每一个元素进行迭代时的别名。 (2)index:指定一个名字,用于表示在迭代过程中,每次迭代到的位置。 (3)collection:根据传入的参数值确定。 (4)open:表示该语句以什么开始。 阅读全文
posted @ 2021-06-04 11:50 才没有木头 阅读(1070) 评论(0) 推荐(0)
摘要:常用命令: git add:将本地文件增加到暂存区 git commit:将暂存区的内容 提交到 本地仓库(本地分支,默认master分支) git push:将本地仓库内容 推送到 远程仓库(远程分支) git pull:将远程仓库(远程分支)内容 拉取到 本地仓库(本地分支) git branc 阅读全文
posted @ 2021-04-14 10:28 才没有木头 阅读(49) 评论(0) 推荐(0)
摘要:1,Map<String, WorkingProcedureCascade> treeMap = workingProcedureCascadeList.stream() .collect(Collectors .toMap(WorkingProcedureCascade::getProductio 阅读全文
posted @ 2021-01-04 13:36 才没有木头 阅读(168) 评论(0) 推荐(0)