1、go语言的多态是用接口来实现的interface 2、interface接口实现继承 定义了结构体 定义一个函数 为继承的接口定义方法 3、if格式的类型判断 4、switch的类型判断 ...
分类:
其他好文 时间:
2019-05-18 00:32:06
阅读次数:
110
python WSGI框架详解 WSGI 几个关于WSGI相关的概念 PEP 0333 – Python Web Server Gateway Interface 是一种 web server or gateway 和 python web application or framework 之间简单 ...
分类:
编程语言 时间:
2019-05-17 23:09:56
阅读次数:
339
在微服务架构中,根据业务来拆分成一个个的服务,服务与服务之间可以相互调用(RPC),在Spring Cloud可以用RestTemplate+Ribbon和Feign来调用。为了保证其高可用,单个服务通常会集群部署。由于网络原因或者自身的原因,服务并不能保证100%可用,如果单个服务出现问题,调用这 ...
分类:
编程语言 时间:
2019-05-17 00:11:09
阅读次数:
180
源代码: interface Volume{public double volume();}interface Area{public double area();} class yuanzhui extends Object implements Area,Volume {private doub ...
分类:
其他好文 时间:
2019-05-16 22:56:15
阅读次数:
143
package 接口运用;interface Person{ public void eat(); public void sleep(); public void play(); }class Student implements Person{ String StudentClass; publ ...
分类:
编程语言 时间:
2019-05-16 22:55:25
阅读次数:
154
vue路由的两种模式配置以及history模式下面后端如何配置 1、hash ——即地址栏URL中的#符号。hash 虽然出现URL中,但不会被包含在HTTP请求中,对后端完全没有影响,因此改变hash不会重新加载页面。2、history ——利用了HTML5 History Interface 中 ...
分类:
其他好文 时间:
2019-05-16 18:02:59
阅读次数:
245
自定义注解 @Target({ ElementType.METHOD, ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @Inherited @Documented public @interface CommonLog { Strin ...
分类:
编程语言 时间:
2019-05-15 22:47:48
阅读次数:
165
单臂路由: [R1]interface GigabitEthernet 0/0.10 进入子接口 [R1-GigabitEthernet0/0.10]vlan-type dot1q vid 10 封装vlan标识 [R1-GigabitEthernet0/0.10]ip address 192.16 ...
分类:
其他好文 时间:
2019-05-15 16:47:06
阅读次数:
133
1. 定义: CGI(Common Gateway Interface 公共网关接口)是HTTP服务器与你的或其它机器上的程序进行“交谈”的一种工具,其程序须运行在网络服务器上。 2. 功能: 绝大多数的CGI程序被用来解释处理杰自表单的输入信息,并在服 务器产生相应的处理,或将相应的信息反馈给浏览 ...
分类:
其他好文 时间:
2019-05-15 14:30:22
阅读次数:
112
s( Single-Resposibility Principle ): 单一职责原则 o( Open-Closed principle ): 开放封闭原则 l( Liskov-Substituion Principle ): 里氏原则 i( Interface-Segregation Princi ...
分类:
编程语言 时间:
2019-05-15 12:31:58
阅读次数:
121