上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 整体表结构 部门表设计 drop table if exists department; create table department( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT primary key comment '主键', `name 阅读全文
posted @ 2020-12-31 16:59 java拌饭 阅读(146) 评论(0) 推荐(0)
摘要: java中的Channel抽象 三层抽象 第一层:Channel层只是抽象了channel最顶层的两个方法 第二层:可选的Channel抽象,只抽象了Channel跟Selector的交互 第三层:直接的具体抽象,以Socket为例,SocketChannel是用户读写数据的,ServerSocke 阅读全文
posted @ 2020-12-29 11:39 java拌饭 阅读(631) 评论(0) 推荐(0)
摘要: Spring原文地址 注解术语 元注解:注解在别的注解上的注解,比如@Documented、@Retention、@Target 刻板注解:被元注解,用来表明特殊的角色@Controller、@Service、@Repository。Stereotype Annotation 我喜欢翻译它为刻板注解 阅读全文
posted @ 2020-12-28 10:51 java拌饭 阅读(137) 评论(0) 推荐(0)
摘要: 现状 加载DriverManager的时候,logWriter==null 首先执行静态代码块 静态代码块会打印日志 # 问题 如何在类加载前设置logWriter????? 方案一 以下代码放在第一行 DriverManager.setLogWriter(new PrintWriter(Syste 阅读全文
posted @ 2020-12-22 10:49 java拌饭 阅读(437) 评论(0) 推荐(0)
摘要: centos7安装redis5 单节点编译安装脚本 安装位置/opt/redis5 把脚本保存到redis.sh,执行sh redis.sh 也可以分步执行每一行 关闭防火墙:systemctl stop firewalld #!/bin/bash redisHome=/opt/redis5 bin 阅读全文
posted @ 2020-12-21 18:09 java拌饭 阅读(449) 评论(0) 推荐(0)
摘要: #学而时习之,不亦说乎! 更换更快的yum源 可选步骤,可直接跳到安装Docker 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 下载源 cd /etc/yum.repos.d/ cu 阅读全文
posted @ 2020-11-27 14:50 java拌饭 阅读(2160) 评论(0) 推荐(1)
摘要: 官网指南 Purpose Using the CLI MiniCluster, users can simply start and stop a single-node Hadoop cluster with a single command, and without the need to se 阅读全文
posted @ 2020-11-05 18:22 java拌饭 阅读(294) 评论(0) 推荐(0)
摘要: 查询简介 lucene的文档搜索条件通过Query对象完成 IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get("index"))); IndexSearcher searcher = new IndexSearc 阅读全文
posted @ 2020-09-09 10:48 java拌饭 阅读(257) 评论(0) 推荐(0)
摘要: Map key-value存储容器 HashMap Hash表实现的Map 允许key和value为null LinkedHashMap Hash表实现,同时保存了插入或者访问顺序 SortedMap 有序Map,key会排序 NavigableMap 可导航的map,由于是有序的,因此可以实现获取 阅读全文
posted @ 2020-09-08 15:54 java拌饭 阅读(133) 评论(0) 推荐(0)
摘要: Sentinel 核心API-Sentinel-core Node Node:数据统计API接口 StatisticNode:实现Node,使用滑动窗口实现数据统计 DefaultNode:继承StatisticNode,关联资源、关联集群ClusterNode、持有一系列子节点 EntranceN 阅读全文
posted @ 2020-08-25 10:11 java拌饭 阅读(415) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页