首先简单阐述下什么是SPI:SPI 全称为 (Service Provider Interface) ,是JDK内置的一种服务提供发现机制。目前有不少框架用它来做服务的扩展发现,简单来说,就是一种动态替换发现的机制。使用SPI机制的优势是实现解耦,使得第三方服务模块的装配控制逻辑与调用者的业务代码分 ...
分类:
其他好文 时间:
2021-06-11 18:26:49
阅读次数:
0
数据类型: 整数(byte,short,int,long)1 数值型1 浮点数(float,double)1 基本数据类型1 字符(char)1 数据类型 非数值型2 布尔(boolean)2 引用数据类型2 类(class)2 接口(interface)2 数组([])2 数据类型内存占用和取值范 ...
分类:
其他好文 时间:
2021-06-11 18:07:25
阅读次数:
0
任何容器的底层数据结构只有两种:一种是数组;另一种是链表。例如:list,set,map,二叉树,图等容器。访问容器使用Iterator迭代器。 public interface Collection_ { void add(Object o); int size(); Iterator_ iter ...
分类:
其他好文 时间:
2021-06-10 18:43:23
阅读次数:
0
settings,xml 阿里云镜像: <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/ ...
分类:
其他好文 时间:
2021-06-10 18:06:24
阅读次数:
0
java文件中包含3700行 /** * Returns the {@code Class} object associated with the class or * interface with the given string name. Invoking this method is * e ...
分类:
编程语言 时间:
2021-06-09 10:31:41
阅读次数:
0
批量操作接口:[SW1]port-group g2[SW1-port-group-g2]group-member GigabitEthernet 0/0/10 to GigabitEthernet 0/0/20 清空接口配置:[SW1]clear configuration interface Gi ...
分类:
其他好文 时间:
2021-06-08 22:55:00
阅读次数:
0
接口 接口的声明 [可见度] interface 接口名称 [extends 其他的接口名] { // 声明变量 // 抽象方法 } //例子 /* 文件名 : Animal.java */ interface Animal { public void eat(); public void trav ...
分类:
编程语言 时间:
2021-06-07 20:50:15
阅读次数:
0
简单工厂模式 简单工厂模式是由工厂对象决定创建哪一种产品,虽然不属于23种设计模式,但是也是工厂模式进阶的由来。 模拟场景: 暑假太过无聊,就自己在家打算做一个MP3播放器,其中包括播放器的程序设计也是自己来搞定的。如下结构 //歌曲播放接口 public interface ISong { voi ...
分类:
其他好文 时间:
2021-06-06 19:33:44
阅读次数:
0
一、简介 cgroups 的全称是control groups,是Linux内核提供的一种可以限制、记录、隔离进程组所使用的物理资源(包括:CPU、memory、IO等),可以对 cpu,内存等资源实现精细化的控制,目前越来越火的轻量级容器 Docker 就使用了 cgroups 提供的资源限制能力 ...
分类:
其他好文 时间:
2021-06-06 19:06:23
阅读次数:
0
/* * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. ...
分类:
编程语言 时间:
2021-06-04 18:53:10
阅读次数:
0