上一页 1 ··· 7 8 9 10 11 12 13 下一页
摘要: // *****************************现象描述******************************* package com.example.SpringBootTest1.shejimoshi.singleton;public class InnerclassSi 阅读全文
posted @ 2022-02-25 13:33 剑阁丶神灯 阅读(77) 评论(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 剑阁丶神灯 阅读(12) 评论(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 剑阁丶神灯 阅读(33) 评论(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 剑阁丶神灯 阅读(22) 评论(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 剑阁丶神灯 阅读(18) 评论(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 剑阁丶神灯 阅读(29) 评论(0) 推荐(0)
摘要: 浅拷贝 @Datapublic class ShopItem implements Cloneable { private String shopItemName; public ShopItem clone() throws CloneNotSupportedException { ShopIte 阅读全文
posted @ 2022-02-24 21:26 剑阁丶神灯 阅读(29) 评论(0) 推荐(0)
摘要: <properties> <!-- 文件拷贝时的编码 --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.rep 阅读全文
posted @ 2022-02-24 21:17 剑阁丶神灯 阅读(302) 评论(0) 推荐(0)
摘要: public class InnerclassSingleton { private InnerclassSingleton() {}; private static class Singleton { private static final InnerclassSingleton i = new 阅读全文
posted @ 2022-01-20 16:43 剑阁丶神灯 阅读(35) 评论(0) 推荐(0)
摘要: linux centos7 默认防火墙是关闭的,设置了开启端口后一定要重启防火墙,否则端口开启会不起作用 查看已开启的端口 firewall-cmd --list-ports 查看防火墙状态 firewall-cmd --state 开启防火墙 systemctl start firewalld 开 阅读全文
posted @ 2022-01-16 08:27 剑阁丶神灯 阅读(837) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 下一页