02 2022 档案

摘要:public class WrapperTest { public static void main(String[] args) { /** 拍照 */// Componnet conCreateComponnet = new ConCreateComponnet();// conCreateCo 阅读全文
posted @ 2022-02-25 15:00 剑阁丶神灯 阅读(17) 评论(0) 推荐(0) 编辑
摘要:public class PageUtil { private PageUtil() { // 工具类私有构造方法 } /** * 内存分页 * * @param page * @param pageSize * @param filterDtoList * @param <T> * @return 阅读全文
posted @ 2022-02-25 13:35 剑阁丶神灯 阅读(179) 评论(0) 推荐(0) 编辑
摘要:/** * 建造者 */public abstract class Builder { // 地基 public abstract void buildA(); // 钢筋工程 public abstract void buildB(); // 粉刷 public abstract void bui 阅读全文
posted @ 2022-02-25 13:34 剑阁丶神灯 阅读(29) 评论(0) 推荐(0) 编辑
摘要:******************************************正确写法******************************************************package com.example.SpringBootTest1.shejimoshi.sin 阅读全文
posted @ 2022-02-25 13:34 剑阁丶神灯 阅读(42) 评论(0) 推荐(0) 编辑
摘要:// *****************************现象描述******************************* package com.example.SpringBootTest1.shejimoshi.singleton;public class InnerclassSi 阅读全文
posted @ 2022-02-25 13:33 剑阁丶神灯 阅读(70) 评论(0) 推荐(0) 编辑
摘要:public enum EnumSingleton { INSTANCE;} public class Test { public static void main(String[] args) { EnumSingleton instance1 = EnumSingleton.INSTANCE; 阅读全文
posted @ 2022-02-25 13:33 剑阁丶神灯 阅读(7) 评论(0) 推荐(0) 编辑
摘要:/** * 建造者 */public abstract class Builder { public abstract Builder buildA(String s); public abstract Builder buildB(String s); public abstract Builde 阅读全文
posted @ 2022-02-25 13:33 剑阁丶神灯 阅读(22) 评论(0) 推荐(0) 编辑
摘要:对象适配器模式(组合模式) public class AdapterTest { public static void main(String[] args) { Target target = new Adapter(new Adaptee()); target.output5v(); }}cla 阅读全文
posted @ 2022-02-25 11:15 剑阁丶神灯 阅读(16) 评论(0) 推荐(0) 编辑
摘要:public class System1 { public void dosomething() { System.out.println("system1.."); }} public class System2 { public void dosomething() { System.out.p 阅读全文
posted @ 2022-02-24 23:00 剑阁丶神灯 阅读(16) 评论(0) 推荐(0) 编辑
摘要:public class TreeNode { private Integer x; private Integer y; private Tree tree; public TreeNode(Integer x, Integer y, Tree tree) { this.x = x; this.y 阅读全文
posted @ 2022-02-24 22:31 剑阁丶神灯 阅读(25) 评论(0) 推荐(0) 编辑
摘要:浅拷贝 @Datapublic class ShopItem implements Cloneable { private String shopItemName; public ShopItem clone() throws CloneNotSupportedException { ShopIte 阅读全文
posted @ 2022-02-24 21:26 剑阁丶神灯 阅读(23) 评论(0) 推荐(0) 编辑
摘要:<properties> <!-- 文件拷贝时的编码 --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.rep 阅读全文
posted @ 2022-02-24 21:17 剑阁丶神灯 阅读(296) 评论(0) 推荐(0) 编辑