1. 概览 ZooKeeper是一个供其它分布式应用程序使用的软件, 它为其它分布式应用程序提供所谓的 服务. 所谓的 服务, 是指ZooKeeper的如下能力 0. naming 命名 0. configuration management 配置管理 0. synchronization 同步 0 ...
分类:
其他好文 时间:
2018-06-26 20:47:38
阅读次数:
205
mybatis报错问题: 运行报错:Parameter 'listType' not found. Available parameters are [collection, list] 解决:1.通用方法,在dao层参数上加上@Param("listType"),所以养成加@Param是个好习惯 ...
分类:
其他好文 时间:
2018-06-26 16:13:21
阅读次数:
4686
char *fgets(char *restrict s, int n, FILE *restrict f) { char *p = s; unsigned char *z; size_t k; int c; FLOCK(f); if (n--mode |= f->mode-1; FUNLOCK(f... ...
分类:
其他好文 时间:
2018-06-25 22:49:20
阅读次数:
394
//1.增 public int insert(Port port) ; //2.删 public int deleteM(String id);//3.改 public int update(Port port); //1.增 <insert id="insert" parameterType=" ...
分类:
移动开发 时间:
2018-06-25 20:35:47
阅读次数:
522
cmd 中运行 pip3 install PyMySQL 或者采用git ...
分类:
数据库 时间:
2018-06-25 17:54:03
阅读次数:
139
摘要: 本文首先概述了单例模式产生动机,揭示了单例模式的本质和应用场景。紧接着,我们给出了单例模式在单线程环境下的两种经典实现:饿汉式 和 懒汉式,但是饿汉式是线程安全的,而懒汉式是非线程安全的。在多线程环境下,我们特别介绍了五种方式来在多线程环境下创建线程安全的单例,使用 synchronized ...
分类:
编程语言 时间:
2018-06-25 16:48:55
阅读次数:
231
搜索文件或者文件夹,是一个常见的需求。我们可以用多种命令来实现我们的需求。 find 命令实现搜索 find 是英文,寻找的意思。这个命令可以很方面的来搜索我们需要的内容。 标准命令如下: find ./ -iname "*.txt" 1 命令 搜索的目录 参数 关键词 -iname 是不区分大小写 ...
分类:
系统相关 时间:
2018-06-25 12:54:21
阅读次数:
194
/** * tty_chars_in_buffer - characters pending * @tty: terminal * * Return the number of bytes of data in the device private * output queue. If no pri... ...
分类:
其他好文 时间:
2018-06-24 22:31:44
阅读次数:
203
Divisibility by 25 time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given an integ ...
分类:
其他好文 时间:
2018-06-24 21:37:24
阅读次数:
350
Mybatis(1、核心配置文件、Properties、Settings、typeAliases...) Mybatis(1、核心配置文件、Properties、Settings、typeAliases...) 2017年04月23日 22:52:36 阅读数:1527 2017年04月23日 22 ...
分类:
其他好文 时间:
2018-06-24 19:33:17
阅读次数:
331