随笔分类 - java
摘要:https://blog.csdn.net/qq_34412985/article/details/115248772
阅读全文
摘要:原本直接输入,怎么都是CST格式乱七八糟的。 row.createCell(2).setCellValue("盘点日期:"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String batchDate = sdf.form
阅读全文
摘要:   private String productCode; public String getProductCode(){// 过滤空格; return productCode.trim(); }
阅读全文
摘要:<if test="timeStatus != null and timeStatus.trim() != ''"> <if test="timeStatus == 1"> < * https://wenku.csdn.net/answer/50db66695ced42d380b982b8
阅读全文
摘要:`${keyword}` 和 `#{keyword}` 是 MyBatis 中用于参数替换的两种不同的占位符形式,它们有以下区别: 1. `${keyword}`:这是一种简单的字符串替换占位符形式,它会将占位符 `${keyword}` 直接替换为传入的参数值。例如,在 XML 配置文件中使用 `
阅读全文
摘要:* 名称是selectOne,但有多条数据满足条件的时候,会返回多条数据。 * 解决方法: 加上`.last("limit 1")` ``` String todayStart = DateUtils.getTodayStartTime(); String todayEnd = DateUtils.
阅读全文
摘要:* 我的代码片段 ``` String numberCode = (String) params.get("numberCode"); if(StringUtils.isNotBlank(numberCode)){ wrapper.and(qw -> qw.eq("number", numberCo
阅读全文
摘要:### demo 本章节综合汇总信息,在这个demo都可以体现 看的有点懵~!!~ ``` interface ILink { // 链表公共标准 /** * 向链表中进行数据的存储,每个链表所保存的数据类型相同,不允许保存null数据 * @param e 要保存的数据 */ public voi
阅读全文
摘要:### demo ``` class Outer { // 外部类 private String msg = "www.mldn.cn"; // 私有成员属性 public void fun() { // 普通方法 Inner in = new Inner(); // 实例化内部类对象 in.pri
阅读全文
摘要:### demo ``` public class JavaDemo { public static void main(String args[]) throws Exception { int x = 10; // 中间可能会经过许多条程序语句,导致变量x的内容发生改变 assert x ==
阅读全文
摘要:### demo * 在项目开发中,会大量接触自定义异常 * 本节案例,综合本章节很多案例。 ``` class BombException extends Exception {// 自定义强制处理异常 public BombException(String msg){ super(msg);//
阅读全文
摘要:### demo1 parseInt() 方法不处理异常 ``` public class JavaDemo { public static void main(String args[]) { int num = Integer.parseInt("123");// 课程中从官网手册,查看pars
阅读全文
摘要:### demo1 这种模型,开发中经常用 ``` class MyMath { public static int div(int x, int y) throws Exception { // 异常抛出 int temp = 0; System.out.println("*** 【START】除
阅读全文
摘要:### demo ``` public class JavaDemo { public static void main(String args[]) { try { throw new Exception("自己抛着玩的"); } catch (Exception e){ e.printStack
阅读全文

浙公网安备 33010602011771号