代码实现 go package tree import "fmt" type Node struct { elem interface{} left, right Node } type Tree struct { root Node } func NewTree() Tree { return & ...
分类:
其他好文 时间:
2019-02-26 01:03:01
阅读次数:
456
1 package com.array.jun; 2 3 /** 4 * 5 * @author pengjun 6 * @version 1.0 7 */ 8 interface A{ 9 public void x(); 10 public String y(); 11 } 12 13 inte... ...
分类:
其他好文 时间:
2019-02-25 22:02:41
阅读次数:
212
工具: mysql 5.5.62 IDEA 参考自:https://www.cnblogs.com/best/p/5688040.html 遇到的问题: 无法读取src/main/java下配置文件, 解决方法参考自https://blog.csdn.net/qq_32778043/article/ ...
分类:
移动开发 时间:
2019-02-24 15:00:45
阅读次数:
178
0.遇到一个问题代码func GetMap (i interface{})(map[string]interface{}){ if i == nil { //false ??? i = make(map[string]interface) fmt.Println("xxxxx") }}var tes... ...
分类:
其他好文 时间:
2019-02-24 00:42:21
阅读次数:
205
1、Lambda 表达式 (把代码当作参数) //定义了操作接口public interface GreetingService {void sayMessage(String message);}//声明接口的具体操作GreetingService greetService1 = message ...
分类:
编程语言 时间:
2019-02-23 14:49:15
阅读次数:
204
oc总结: 类: @interface Person:NSObject{ //成员变量 @protected @private @public } @property(nonatomic,copy)(NSString*)name; -(void)test; +(void)test2; -(void)... ...
分类:
其他好文 时间:
2019-02-23 01:18:12
阅读次数:
169
SPI 全称为 Service Provider Interface,是一种服务发现机制。SPI 的本质是将接口实现类的全限定名配置在文件中,并由服务加载器读取配置文件,加载实现类。这样可以在运行时,动态为接口替换实现类。 Dubbo 并未使用 Java 原生的 SPI 机制,而是对其进行了增强,使 ...
分类:
其他好文 时间:
2019-02-23 00:55:52
阅读次数:
227
实验说明 1)keepalived 支持配置多个VRRP实例,每个实例对应一个业务 2)本次实验将实现 keepalived 的互为主备: 业务A:keepalived01为Master,keepalived02为Backup 业务B:keepalived01为Backup,keepalived02 ...
分类:
其他好文 时间:
2019-02-22 23:19:53
阅读次数:
230
#import "XMGTool.h" static XMGTool * _instance;//静态变量保证了单例的唯一性,静态变量是程序一开始就存在的 @interface XMGTool ()<NSCopying, NSMutableCopying> @end @implementation ...
分类:
其他好文 时间:
2019-02-22 21:30:21
阅读次数:
154
4种货物,如何使用一个接口实现CRUD: 实现 Controller调用 实体继承Goods接口 ok ps:mapper name 语句要统一对应 ...
分类:
其他好文 时间:
2019-02-22 21:29:51
阅读次数:
135