摘要:
F5 单步执行,会进入方法 F6 单步执行,不会进入方法 F7 跳出debug方法 F8 执行到下一个断点 阅读全文
摘要:
属性拷贝 BeanUtils.copyProperties(a,b); 阅读全文
摘要:
Date类 new Date() Thu Apr 27 10:35:17 CST 2023 Calendar类 //获取当前时间的后n天 Calendar ca=Calendar.getInstance(); ca.setTime(new Date()); ca.add(Calendar.Date, 阅读全文
摘要:
接口名与SQL格式 List<String> selectByService(@Param("serviceCode") stringCode,@Param("serviceName") stringName); <select id="selectByService" resultType="ja 阅读全文
摘要:
函数式接口:只有一个方法的接口 public interface CanAdd { int add(int a,int b); } 该接口作为其他方法的入参,实现函数传递 public class Dog { public static void add(int a,int b,CanAdd c){ 阅读全文
摘要:
获取反射类: Student.class student.getClass() Class<?> aClass=Class.forName("student") 构造器 Object o = aClass.newInstance(); //默认构造器 Constructor<?> construct 阅读全文
摘要:
public class T12 { public void ss(Object... list){ for(Object o:list){ System.out.println(o); } } public void ss(int i1,int i2,int i3){ System.out.pri 阅读全文
摘要:
https://juejin.cn/post/7126708538440679460 每个线程持有一个threadLocalMap key是TheadLocal,value是泛型对象 public void set(T value) { Thread t = Thread.currentThread 阅读全文
摘要:
1.不要出现魔法值(数字),定义常量或者枚举 2.防止空指针 3.throws Exception() 表示上层必须try catch捕获 4. 创建new Timestamp(System.currentTimeMillis()) 5. timestamp转string SimpleDateFor 阅读全文
摘要:
1.注册beandefiniton 2.bean实例化 3.属性赋值 4.初始化 5.销毁 期间有很多的前置后置处理器 阅读全文