上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

2017年9月5日

为Linux 添加自定义命令

摘要: alias ll="ls -al --color=auto" 阅读全文

posted @ 2017-09-05 16:42 jis117 阅读(253) 评论(0) 推荐(0) 编辑

2017年9月4日

javax.validation 自定义校验器

摘要: import java.util.Iterator; import java.util.List; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import org.apache.commons.lang3.StringUtils; publ... 阅读全文

posted @ 2017-09-04 18:21 jis117 阅读(4511) 评论(0) 推荐(0) 编辑

2017年8月29日

MYBatis 动态SQL

摘要: 1.普通映射 [html] view plain copy @Select("select * from mybatis_Student where id=#{id}") public Student getStudent(int id); @Insert("insert into mybatis_ 阅读全文

posted @ 2017-08-29 15:07 jis117 阅读(295) 评论(0) 推荐(0) 编辑

2017年8月28日

SPRING BOOT 15.1 TEST

摘要: package example; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Matchers; import org.mybatis.spring.boot.autoconfigure.M... 阅读全文

posted @ 2017-08-28 01:21 jis117 阅读(191) 评论(0) 推荐(0) 编辑

2017年8月24日

B-树和B+树的应用:数据搜索和数据库索引

摘要: B-树 1 .B-树定义 B-树是一种平衡的多路查找树,它在文件系统中很有用。 定义:一棵m 阶的B-树,或者为空树,或为满足下列特性的m 叉树:⑴树中每个结点至多有m 棵子树;⑵若根结点不是叶子结点,则至少有两棵子树; ⑶除根结点之外的所有非终端结点至少有[m/2] 棵子树;⑷所有的非终端结点中包 阅读全文

posted @ 2017-08-24 02:33 jis117 阅读(226) 评论(0) 推荐(0) 编辑

2017年8月23日

设计模式-代理

摘要: 代理模式 在代理模式(Proxy Pattern)中,一个类代表另一个类的功能。这种类型的设计模式属于结构型模式。 在代理模式中,我们创建具有现有对象的对象,以便向外界提供功能接口。 介绍 意图:为其他对象提供一种代理以控制对这个对象的访问。 主要解决:在直接访问对象时带来的问题,比如说:要访问的对 阅读全文

posted @ 2017-08-23 15:12 jis117 阅读(117) 评论(0) 推荐(0) 编辑

数据结构与算法

摘要: http://www.cnblogs.com/yangecnu/p/Introduce-Red-Black-Tree.html http://www.cnblogs.com/maybe2030/p/4715035.html http://algs4.cs.princeton.edu/33balanc 阅读全文

posted @ 2017-08-23 01:30 jis117 阅读(119) 评论(0) 推荐(0) 编辑

2017年8月22日

JAVA Thread中的状态

摘要: /** * A thread state. A thread can be in one of the following states: * * {@link #NEW} * A thread that has not yet started is in this state. * * {@link #RUNNA... 阅读全文

posted @ 2017-08-22 18:53 jis117 阅读(157) 评论(0) 推荐(0) 编辑

2017年8月21日

Zookeeper工作原理

摘要: zookeeper工作原理: ZooKeeper是一开源分布式应用程序协调服务,包含一个简单的原语集,分布式应用程序可以基于它实现同步服务,配置维护和命名服务等功能,可提供一种可靠的、可扩展的、分布式的、可配置的协调机制来统一系统的状态。 zookeeper的基本概念 角色 Zookeeper中的角 阅读全文

posted @ 2017-08-21 17:01 jis117 阅读(171) 评论(0) 推荐(0) 编辑

柯里化

摘要: var scope = "test"; function currying(welcome){ return function(name) { return welcome + "," + name; } } var prefix = currying("hello"); prefix("world"); 阅读全文

posted @ 2017-08-21 16:48 jis117 阅读(111) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页

导航