积少成多 Learning Linux From Scratch(一) 冷知识 bash shell Bourne again shell tty means teletypewriter 电传打字机 命令行界面(command line interface, CLI) 快捷键 Shift + Ct ...
分类:
系统相关 时间:
2021-02-23 14:17:31
阅读次数:
0
全局过滤器作用于所有的路由,不需要单独配置,我们可以用它来实现很多统一化处理的业务需求,比如权限认证、IP 访问限制等。 接口定义类 org.springframework.cloud.gateway.filter.GlobalFilter public interface GlobalFilter ...
分类:
编程语言 时间:
2021-02-23 14:13:28
阅读次数:
0
1、建造者模式 (1)概念 将一个复杂对象的构造与它的表示分离,使同样的构建过程可以创建不同的表示。建造者模式注重组装过程,而工厂方法模式更注重创建过程 2、建造者模式的实现 (1)UML (2)实现 抽象建造者 public interface TerrainBuilder { TerrainBu ...
分类:
其他好文 时间:
2021-02-22 12:11:45
阅读次数:
0
public class DemoMain { public static void main(String[] args) { /* 多态 如果接口的实现类或者父类的子类只需要使用唯一的一次 那么这种情况下就可以省略掉这个类的定义 而改为使用匿名内部类 接口名称 对象名 = new 接口名称(){ ...
分类:
编程语言 时间:
2021-02-20 12:45:21
阅读次数:
0
1. 接口 ******接口是一种类型go提倡面向接口编程 2. 接口格式 type 接口类型名 interface{ 方法名1( 参数列表1 ) 返回值列表1 方法名2( 参数列表2 ) 返回值列表2 … } 接口名:使用type将接口定义为自定义的类型名。Go语言的接口在命名时,一般会在单词后面 ...
分类:
其他好文 时间:
2021-02-20 12:18:06
阅读次数:
0
windows服务 unit untserverinfo; interface uses Windows, Messages, SysUtils, Classes, Forms, WinSvc, SvcMgr, System.Win.Registry; function ServiceGetStat ...
Vue3 与依赖注入 本文写于 2021 年 2 月 19 日 在 React 中,我们可以通过 context 与 useContext 实现单例、注入……等诸多特性。 详细请看上一篇文章:如何利用 React Hooks 管理全局状态. 例如: const SomeService = creat ...
分类:
其他好文 时间:
2021-02-20 11:52:05
阅读次数:
0
先上代码: public interface IWorkflowHelper { /// <summary> /// 工作流步骤描述文本颜色 /// </summary> static Color Color = Color.Red; } 使用场景: Colorful.Console.WriteLi ...
分类:
编程语言 时间:
2021-02-19 13:50:59
阅读次数:
0
public @interface HystrixCommand { // HystrixCommand 命令所属的组的名称:默认注解方法类的名称 String groupKey() default ""; // HystrixCommand 命令的key值,默认值为注解方法的名称 String c ...
分类:
其他好文 时间:
2021-02-18 13:38:05
阅读次数:
0
自动装配 springboot的启动注解是@SpringBootApplication,它是一个组合注解,是由@SpringBootConfiguration、@EnableAutoConfiguration、@ComponentScan组成的。而自动配置就是由@EnableAutoConfigur ...
分类:
编程语言 时间:
2021-02-18 13:20:23
阅读次数:
0