装饰者模式在 JDK 应用的源码分析 Java 的 IO 结构,FilterInputStream 就是一个装饰者: public abstract class InputStream implements Closeable{} 是一个抽象类,即Component public class Fil ...
分类:
其他好文 时间:
2021-01-25 11:36:43
阅读次数:
0
@ComponentScan(excludeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Controller.class, RestController.class})) 前言 springboot ...
分类:
其他好文 时间:
2021-01-22 12:28:51
阅读次数:
0
原文: Dump文件分析 本文主要介绍Dump文件结构,理解Dump文件对于分析线程高占用、死锁、内存溢出等高级问题有非常重要的指导意义。 什么是Dump文件 Dump文件是进程的内存镜像。可以把程序的执行状态通过调试器保存到dump文件中。Dump文件是用来给程序编写人员调试程序用的,这种文件必须 ...
分类:
其他好文 时间:
2021-01-19 12:10:17
阅读次数:
0
Creational Patterns Factory Method : Factory Method Abstract Factory : Abstract Factory Builder : Builder Prototype : Prototype Singleton : Singleton ...
分类:
其他好文 时间:
2021-01-18 11:35:19
阅读次数:
0
(function (root, factory) { if (typeof define 'function' && define.amd) { // AMD. Register as an anonymous module. define([], factory); } else if (typ ...
分类:
其他好文 时间:
2021-01-14 11:31:13
阅读次数:
0
Jdk 8 的hashmap ,内部使用Node 表示数组成员,Node 实现了Map.Entry接口。 put() 过程: 1 public class HashMap<K,V> extends AbstractMap<K,V>implements Map<K,V>, Cloneable, Ser ...
分类:
编程语言 时间:
2021-01-14 11:29:05
阅读次数:
0
一丶错误一 一丶错误信息 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'memberController': Unsatisfied dependenc ...
分类:
编程语言 时间:
2021-01-13 11:12:42
阅读次数:
0
1,错误信息 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'memberController': Unsatisfied dependency expr ...
分类:
数据库 时间:
2021-01-13 11:09:07
阅读次数:
0
自定义负载均衡 IRule接口介绍 com.netflix.loadbalancer.IRule 是自定义负载均衡的算法实现类 源码 /** * Interface that defines a "Rule" for a LoadBalancer. A Rule can be thought of ...
分类:
编程语言 时间:
2021-01-12 11:20:12
阅读次数:
0
设计模式:工厂方法模式 定义 工厂方法模式(Factory Method Pattern)又称为工厂模式,又称工厂模式、多态工厂模式和虚拟构造器模式,它属于类创建型模式。在工厂方法模式中,工厂父类负责定义创建产品对象的公共接口,而工厂子类则负责生成具体的产品对象,这样做的目的是将产品类的实例化操作延 ...
分类:
其他好文 时间:
2021-01-12 11:19:33
阅读次数:
0