- 博客(19)
- 资源 (71)
- 问答 (1)
- 收藏
- 关注
原创 firefox按住ctrl留在原页面打开新的标签页
fireflox安装 tab mix plus 后,firefox按住ctrl留在原页面点击超链接,打开新的标签页,并且标签页还是保持在原有标签页,而不是跳到新的标签页。要这样设置。
2015-07-27 20:09:02 2215 1
原创 设计模式小结
所有模式:创建型模式,共五种:工厂方法模式、抽象工厂模式、单例模式、建造者模式、原型模式。结构型模式,共七种:适配器模式、装饰器模式、代理模式、外观模式、桥接模式、组合模式、享元模式。 行为型模式,共十一种:策略模式、模板方法模式、观察者模式、迭代子模式、责任链模式、命令模式、备忘录模式、状态模式、访问者模式、中介者模式、解释器模式。 补充模式:空对象模式
2015-07-21 22:46:48 633
原创 空对象模式 - 行为模式
空对象模式: 提供一个对象,作为一个缺少类型对象的代理。Provide an object as a surrogate for the lack of an object of a given type.
2015-07-21 21:24:31 1234
原创 解释器模式 - 行为模式
解释器模式: 给定一个语言,定义它的文法的一种表示,并定义一种解释器,这个解释器使用该表示来解释语言中的句子。Given a language, define a representation for its grammar along with an interpreter that uses the representation to interpret sentences in the language. Map a domain to a language, the language to a
2015-07-21 21:02:40 787
原创 中介者模式 - 行为模式
中介者模式:定义一个中介对象来封装系列对象之间的交互。中介者使各个对象不需要显示地相互引用,从而使其耦合性松散,而且可以独立地改变他们之间的交互。 Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary th
2015-07-21 20:25:19 768
原创 访问者模式 - 行为模式
访问者模式:访问者模式是对象的行为模式。访问者模式的目的是封装一些施加于某种数据结构元素之上的操作。一旦这些操作需要修改的话,接受这个操作的数据结构则可以保持不变。 Represents an operation to be performed on the elements of an object structure. Visitor lets you define a new operation without changing the classes of the elements on ..
2015-07-21 16:55:38 768
原创 状态模式 - 行为模式
状态模式:当一个对象的内在状态改变时允许改变其行为,这个对象看起来像是改变了其类。 Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.主要解决的是当控制一个对象状态转换的条件表达式过于复杂时的情况。把状态的判断逻辑转移到表示不同的一系列类当中,可以把复杂的逻辑判断简单化。
2015-07-21 12:03:18 1007
原创 备忘录模式 - 行为模式
备忘录模式: 在不破坏封装性的前提下,捕获一个对象的内部状态,并在该对象之外保存这个状态。这样就可以将该对象恢复到原先保存的状态。The intent of this pattern is to capture the internal state of an object without violating encapsulation and thus providing a mean for restoring the object into initial state when needed.
2015-07-21 11:21:02 1006
原创 命令模式 - 行为模式
将一个请求封装为一个对象,从而使你可用不同的请求对客户进行参数化;对请求排队或者记录请求日志,以及支持可撤消的操作。命令模式又称为动作(Action)模式或事务(Transaction)模式。encapsulate a request in an object allows the parameterization of clients with different requests allows saving the requests in a queue
2015-07-18 23:40:31 848
原创 责任链模式 - 行为模式
责任链模式使多个对象都有机会处理请求,从而避免请求的发送者和接收者之间的耦合关系。将这些对象连成一条链,并沿着这条链传递该请求,直到有一个对象处理它为止。It avoids attaching the sender of a request to its receiver, giving this way other objects the possibility of handling the request too. The objects become parts of a chain an
2015-07-18 16:21:28 973
原创 观察者模式 - 行为模式
观察者模式Observer:Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. 定义对象间的一种一对多的依赖关系,当一个对象的状态发生改变时,所有依赖于它的对象都得到通知并被自动更新。
2015-07-18 13:08:26 1869
原创 模板方法 - 行为模式
模板方法Gof的定义是:在一个方法里定义算法的骨架,将一些步骤延迟到其子类。Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclasses redefine certain steps of an algorithm without letting them to change the algorithm's structur
2015-07-15 23:26:15 724
原创 策略模式 - 行为模式
策略模式: 定义一系列的算法,把每一个算法封装起来, 并且使它们可相互替换。本模式使得算法可独立于使用它的客户而变化。也称为政策模式(Policy)。Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
2015-07-15 18:31:06 1219
原创 享元模式 - 结构型模式
享元模式:运用共享技术有效地支持大量细粒度的对象。 The intent of this pattern is to use sharing to support a large number of objects that have part of their internal state in common where the other part of state can vary.
2015-07-15 17:54:11 1236
原创 适配器模式 - 结构型模式
适配器模式:将一个类的接口转换成客户希望的另外一个接口。Adapter模式使得原本由于接口不兼容而不能一起工作的那些类可以在一起工作。Convert the interface of a class into another interface clients expect. Adapter lets classes work together, that could not otherwise because of incompatible interfaces.
2015-07-14 22:56:41 1089
原创 原型模式 - 创建者模式
原型模式是一种创建型设计模式,它通过复制一个已经存在的实例来返回新的实例,而不是新建实例.被复制的实例就是我们所称的原型,这个原型是可定制的.浅拷贝: 对值类型的成员变量进行值的复制,对引用类型的成员变量只复制引用,不复制引用的对象. 深拷贝: 对值类型的成员变量进行值的复制,对引用类型的成员变量也进行引用对象的复制.
2015-07-13 11:24:43 830
转载 maven添加镜像地址
在maven根目录中conf文件夹下settings.xml ibiblio.org ibiblio Mirror of http://repo1.maven.org/maven2/ http://mirrors.ibiblio.org/pub/mirrors/maven2 centra
2015-07-07 17:29:32 3259
转载 【Spring】AOP - 面向切面
这个比较全面了就不再贴一遍了http://blog.csdn.net/robinjwong/article/details/25568481
2015-07-06 09:16:56 397
转载 Myeclipse的web工程跟Eclipse互相转换
Myeclipse的web工程和Eclipse互相转换 eclipse的web工程转myeclipse的web工程1.原eclipse工程叫netschool 2.在myeclipse中新建一个工程叫netschool 并在新建的时修改 web root folder为WebContent 3.备份在myeclipse新建的netschool工程下的.classpath 和.mymetadat
2015-07-04 14:56:24 1902
mybatis-generator中文注释并带分页-改进版3
2017-07-19
mybatis-generator中文注释并带分页-改进版2
2017-07-08
springFramwork-5.0.0.M5
2017-04-19
Packt.Java.EE.7.Performance.Tuning.and.Optimization
2016-12-26
mybatis-generator中文注释并带分页
2016-09-24
mysql-connector-odbc-5.3.6-win32.msi
2016-07-22
SpringMVC+Mybatis
2015-09-26
visualvm-1.3.8
2015-08-12
TiDB in action.pdf 介绍Tidb原理和最佳实践
2022-10-16
JVM分享,包含JVM的优化目标、优化原则、JVM组成、内存区域划分、垃圾回收算法、垃圾回收器、FullGC触发时机等等.
2022-05-06
RocketMQ 分享。目录:RocketMQ作用和特性、架构、存储模型、高可靠、事务、延时消息、消息重试、消息堆积能力
2022-04-15
阿里idea代码格式化文件Aliyun Code Conventions.xml
2021-01-11
mariadb-10.4.6和编译它所需要的依赖
2019-07-19
sslscan-1.10.2-4.el7.psychotic.x86_64.rpm
2019-07-19
coreJava240问与答面试题
2018-04-20
spring源码如何引入分析
2015-07-09
TA创建的收藏夹 TA关注的收藏夹
TA关注的人