随笔分类 -  java

上一页 1 2 3 4 5 6 ··· 9 下一页
摘要:https://blog.csdn.net/qq_34412985/article/details/115248772 阅读全文
posted @ 2023-12-04 19:30 盘思动 阅读(74) 评论(0) 推荐(0)
摘要:原本直接输入,怎么都是CST格式乱七八糟的。 row.createCell(2).setCellValue("盘点日期:"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String batchDate = sdf.form 阅读全文
posted @ 2023-12-01 14:15 盘思动 阅读(390) 评论(0) 推荐(0)
摘要:![](https://img2023.cnblogs.com/blog/1202393/202311/1202393-20231129104359584-1703717630.png) ![](https://img2023.cnblogs.com/blog/1202393/202311/1202393-20231129104448990-1550831294.png) ![](https:// 阅读全文
posted @ 2023-11-29 10:47 盘思动 阅读(16) 评论(0) 推荐(0)
摘要:@Excel(name="商品编号") private String productCode; public String getProductCode(){// 过滤空格; return productCode.trim(); } 阅读全文
posted @ 2023-11-14 16:44 盘思动 阅读(124) 评论(0) 推荐(0)
摘要:<if test="timeStatus != null and timeStatus.trim() != ''"> <if test="timeStatus == 1"> <![CDATA[ AND DATE_FORMAT(now(), '%Y-%m-%d %H:%i:%S') < DATE_FO 阅读全文
posted @ 2023-11-10 10:03 盘思动 阅读(129) 评论(0) 推荐(0)
摘要://wrapper.eq(true,"is_pay",1); wrapper.in("type", Arrays.asList(1,3)); wrapper.between("status",1,4); 阅读全文
posted @ 2023-09-09 16:11 盘思动 阅读(593) 评论(0) 推荐(1)
摘要:可以在foreach中使用嘛 不行 在 Java 中,使用增强型 for-each 循环(也称为 foreach 循环)时,不能直接在循环中使用 remove 方法来移除元素。这是因为 foreach 循环遍历集合时使用的是其内部的迭代器,而调用 remove 方法会破坏迭代器的状态。 如果你想要在 阅读全文
posted @ 2023-08-15 10:33 盘思动 阅读(153) 评论(0) 推荐(0)
摘要:![](https://img2023.cnblogs.com/blog/1202393/202307/1202393-20230727113204372-1642522478.png) * https://wenku.csdn.net/answer/50db66695ced42d380b982b8 阅读全文
posted @ 2023-07-27 11:32 盘思动 阅读(588) 评论(0) 推荐(0)
摘要:`${keyword}` 和 `#{keyword}` 是 MyBatis 中用于参数替换的两种不同的占位符形式,它们有以下区别: 1. `${keyword}`:这是一种简单的字符串替换占位符形式,它会将占位符 `${keyword}` 直接替换为传入的参数值。例如,在 XML 配置文件中使用 ` 阅读全文
posted @ 2023-07-20 09:19 盘思动 阅读(167) 评论(0) 推荐(0)
摘要:* 名称是selectOne,但有多条数据满足条件的时候,会返回多条数据。 * 解决方法: 加上`.last("limit 1")` ``` String todayStart = DateUtils.getTodayStartTime(); String todayEnd = DateUtils. 阅读全文
posted @ 2023-07-14 18:57 盘思动 阅读(536) 评论(0) 推荐(0)
摘要:* 我的代码片段 ``` String numberCode = (String) params.get("numberCode"); if(StringUtils.isNotBlank(numberCode)){ wrapper.and(qw -> qw.eq("number", numberCo 阅读全文
posted @ 2023-07-13 19:13 盘思动 阅读(985) 评论(0) 推荐(0)
摘要:### demo 本章节综合汇总信息,在这个demo都可以体现 看的有点懵~!!~ ``` interface ILink { // 链表公共标准 /** * 向链表中进行数据的存储,每个链表所保存的数据类型相同,不允许保存null数据 * @param e 要保存的数据 */ public voi 阅读全文
posted @ 2023-07-05 09:50 盘思动 阅读(19) 评论(0) 推荐(0)
摘要:### demo ``` class Outer { // 外部类 private String msg = "www.mldn.cn"; // 私有成员属性 public void fun() { // 普通方法 Inner in = new Inner(); // 实例化内部类对象 in.pri 阅读全文
posted @ 2023-07-02 20:31 盘思动 阅读(14) 评论(0) 推荐(0)
摘要:### demo ``` public class JavaDemo { public static void main(String args[]) throws Exception { int x = 10; // 中间可能会经过许多条程序语句,导致变量x的内容发生改变 assert x == 阅读全文
posted @ 2023-07-02 16:42 盘思动 阅读(13) 评论(0) 推荐(0)
摘要:### demo * 在项目开发中,会大量接触自定义异常 * 本节案例,综合本章节很多案例。 ``` class BombException extends Exception {// 自定义强制处理异常 public BombException(String msg){ super(msg);// 阅读全文
posted @ 2023-07-02 11:50 盘思动 阅读(10) 评论(0) 推荐(0)
摘要:### demo1 parseInt() 方法不处理异常 ``` public class JavaDemo { public static void main(String args[]) { int num = Integer.parseInt("123");// 课程中从官网手册,查看pars 阅读全文
posted @ 2023-07-02 11:35 盘思动 阅读(14) 评论(0) 推荐(0)
摘要:### demo1 这种模型,开发中经常用 ``` class MyMath { public static int div(int x, int y) throws Exception { // 异常抛出 int temp = 0; System.out.println("*** 【START】除 阅读全文
posted @ 2023-07-02 11:24 盘思动 阅读(16) 评论(0) 推荐(0)
摘要:### demo ``` public class JavaDemo { public static void main(String args[]) { try { throw new Exception("自己抛着玩的"); } catch (Exception e){ e.printStack 阅读全文
posted @ 2023-07-02 11:12 盘思动 阅读(10) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 9 下一页