摘要: 1. 了解SPI机制 详见 https://www.cnblogs.com/dduo/p/14984693.html 2. 使用SpringBoot的Enable模块 方式一: 使用注解+@Import(ImportSelector实现类) step1: 自定义Server接口以及实现类型 /** 阅读全文
posted @ 2021-07-09 17:31 521pingguo1314 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1. Java SPI机制 SPI只是一个简写,全名为Service Provider Interface,可以理解成服务接口提供者,一般用于针对厂商或者插件的场景下,在java.util.ServiceLoader的文档里有比较详细的介绍。 简单的总结java SPI机制的思想,系统里抽象的各个某 阅读全文
posted @ 2021-07-08 11:25 521pingguo1314 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 1. ELK-6.3.1版本环境搭建 参考 https://www.cnblogs.com/dduo/p/14871203.html 2.maven Java 项目 2.0 项目结构 2.1 pom.xml中引入相关依赖 <!--Es服务器版本6.3.1 使用对应报错 org.elasticsear 阅读全文
posted @ 2021-07-07 10:00 521pingguo1314 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1. 实现类扩展的onRefresh|finishRefresh方法 1.1 SpringBoot应用启动时,判断当前时Servlet类型的Web应用时,创建的ApplicationContext是AnnotationConfigServletWebServerApplicationContext 阅读全文
posted @ 2021-07-02 17:10 521pingguo1314 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1.AbstractApplicationContext#refresh方法总览 @Override public void refresh() throws BeansException, IllegalStateException { synchronized (this.startupShut 阅读全文
posted @ 2021-07-02 17:08 521pingguo1314 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1. 一个简单SpringBoot项目主启动类配置 @SpringBootApplication public class SpringBoot05MongodbApplication { public static void main(String[] args) { SpringApplicat 阅读全文
posted @ 2021-07-02 17:06 521pingguo1314 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1. Hive中复杂数据类型 1>. 复杂类型定义 1.1 map结构数据定义 map<string,string> 1.2 array结构数据定义 array<string> 1.3 struct结构数据定义 struct<id:int,name:string,age:int> 1.4 struc 阅读全文
posted @ 2021-06-28 16:42 521pingguo1314 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1. concat函数 :在连接字符串的时候,只要其中一个是NULL,那么将返回NULL hive> select concat('a','b'); ab hive> select concat('a','b',null); NULL 2. concat_ws函数:在连接字符串的时候,只要有一个字符 阅读全文
posted @ 2021-06-28 16:25 521pingguo1314 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1、卸载服务器当前已安装的JDK (1)、查看Linux自带的JDK是否已安装 查看是否安装,java -version (yum安装的 一般都是 OpenJDK 命令:yum install java-1.8.0-openjdk) (2)、查看jdk 安装包:rpm -qa | grep java 阅读全文
posted @ 2021-06-10 14:55 521pingguo1314 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1. 下载安装包 kafka_2.11-1.0.0.tgz2. tar -xvf kafka_2.11-1.0.0.tgz3. 创建kafka日志目录 mkdir /software/kafka_2.11-1.0.0/logs4. 修改conf/server.properties配置文件 关键点 b 阅读全文
posted @ 2021-06-10 14:53 521pingguo1314 阅读(99) 评论(0) 推荐(0) 编辑