上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页
摘要: 反射的JAVA的一个重要的机制 静态语言:在编译期间检查类型,所有的类型检查发生在编译时。变量的类型在编译时是已知的,不会随着程序运行时期的变化而变化。典型的静态语言包括 Java、C#、C++等。 动态语言:在运行时检查类型,类型检查发生在运行时。变量的类型可以在运行时随程序的执行而改变。典型的动 阅读全文
posted @ 2023-11-03 12:57 突破铁皮 阅读(28) 评论(0) 推荐(0)
摘要: Label 常见属性: Text: 显示的文本内容。 Font: 设置字体属性。 ForeColor: 设置前景颜色。 BackColor: 设置背景颜色。 AutoSize: 控制是否自动调整大小。 常见方法: Invalidate(): 使 Label 的整个显示区域无效。 Refresh(): 阅读全文
posted @ 2023-11-02 17:31 突破铁皮 阅读(176) 评论(0) 推荐(0)
摘要: 模板方法模式 //Hamburg package com.std.www.designPattern.templateMethod; public abstract class Hamburg { public final void make(){ System.out.println(" 汉堡制作 阅读全文
posted @ 2023-10-31 22:07 突破铁皮 阅读(25) 评论(0) 推荐(0)
摘要: 选择你想要的版本 镜像链接https://mirrors.aliyun.com/apache/spark/?spm=a2c6h.25603864.0.0.5d1b590eLwbWr2 sudo tar -zxvf spark-3.3.2-bin-without-hadoop.tgz -C /usr/ 阅读全文
posted @ 2023-10-28 22:28 突破铁皮 阅读(443) 评论(0) 推荐(0)
摘要: 适配器模式 适配器模式有两种实现方式 类适配器采用继承 //MicroUSB package com.std.www.designPattern.adapter; public class MicroUSB { public void recharge(){ System.out.println(" 阅读全文
posted @ 2023-10-07 23:20 突破铁皮 阅读(27) 评论(0) 推荐(0)
摘要: 简单工厂模式 //抽象产品类 package com.std.www.designPattern.simpleFactory; public interface Phone { void getWLAN(); void showElectricity(); void showBrand(); voi 阅读全文
posted @ 2023-10-06 20:58 突破铁皮 阅读(19) 评论(0) 推荐(0)
摘要: 首先是四项配置 core-site.xml <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Licensed under the Apach 阅读全文
posted @ 2023-09-28 20:52 突破铁皮 阅读(31) 评论(0) 推荐(0)
摘要: Ado.Net 一种数据访问技术,应用程序可以连接到数据库,并以各种方式来操作其中的数据,一个com组件库,.Net中数据,优先选择的数据访问接口。 组成 1.DataSet 非连接的核心组件,独立于任何数据源的数据访问,多种不同的数据源 2.Data Provider(数据源提供程序) 用于连接数 阅读全文
posted @ 2023-09-27 23:54 突破铁皮 阅读(103) 评论(0) 推荐(0)
摘要: 本人之前搭建的集群是hadoop3.3.5+hive3.1.3版本,后来发现这两个版本不兼容,虽然官方文档里面说hive3.1.3版本兼容hadoop3.x.y版本,但是当我在使用hive 执行插入语句时发现一直报同一个错误 java.lang.ClassCastException: org.apa 阅读全文
posted @ 2023-09-24 18:40 突破铁皮 阅读(1436) 评论(0) 推荐(0)
摘要: 饿汉单例模式 package com.std.www.singletonmode; import java.util.UUID; public class ScpD { private final static ScpD scpD=new ScpD(); public static ScpD get 阅读全文
posted @ 2023-09-18 21:50 突破铁皮 阅读(25) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 24 下一页