Fork me on GitHub
上一页 1 ··· 88 89 90 91 92 93 94 95 96 ··· 106 下一页
摘要: 定义 策略模式(Strategy Pattern)也叫政策模式,是一种比较简单的模式。 英文原话:Define a family of algorithms,encapsulate each one,and make them interchangeable. 翻译:定义一组算法,将每个算法都封装起 阅读全文
posted @ 2018-04-20 15:00 秋夜雨巷 阅读(374) 评论(0) 推荐(0)
摘要: 定义 责任链模式(Chain of Responsibility Pattern)是一种常见的行为模式。 责任链模式英文原话是:Avoid coupling the sender of a request to its receiver by giving more than one object 阅读全文
posted @ 2018-04-20 11:22 秋夜雨巷 阅读(12527) 评论(0) 推荐(2)
摘要: Linux环境、IP配置 阅读全文
posted @ 2018-04-19 14:47 秋夜雨巷 阅读(109590) 评论(2) 推荐(17)
摘要: 定义 命令模式(Command Pattern)又称为行动(Action)模式或者交易(Transaction)模式。 英文原话:Encapsulate a request as an object,thereby letting you parameterize clients with diff 阅读全文
posted @ 2018-04-19 11:39 秋夜雨巷 阅读(334) 评论(0) 推荐(0)
摘要: 官网下载windos版docker。 安装完之后出现 其中Vbox是虚拟机,和VMWare不同的是,这个是开源免费的。第二个是docker的工具。 启动Kitematic会在Vbox中自动建一个虚拟机 Kitematic打开界面看到的每一个都是镜像文件,可以自行搜索镜像文件,点击create后会自动 阅读全文
posted @ 2018-04-18 17:11 秋夜雨巷 阅读(243) 评论(0) 推荐(0)
摘要: 行为型模式(Behavioral Pattern)是对不同的对象之间划分责任和算法的抽象化。行为型模式包括11种模式:模板方法模式、命令模式、责任链模式、策略模式、迭代器模式、中介者模式、观察者模式、备忘录模式、访问者模式、状态模式、解释器模式。 定义 模板方法模式(Template Method 阅读全文
posted @ 2018-04-18 10:31 秋夜雨巷 阅读(248) 评论(0) 推荐(0)
摘要: Itext5为PDF添加水印 阅读全文
posted @ 2018-04-16 17:04 秋夜雨巷 阅读(1008) 评论(0) 推荐(0)
摘要: 需求:当百度地图在内网中也能使用。 分析:js判断是否联网,然后根据联网状态加载不同js。 失败案例: 1、直接document.write <script language="javascript"> document.write("<script src='xxx.js'><\/script>" 阅读全文
posted @ 2018-04-16 09:26 秋夜雨巷 阅读(2229) 评论(0) 推荐(0)
摘要: 直接用命令执行 导出时指定类,直接运行jar包会执行指定类的main方法 运行其他类的main方法 双击jar包运行方法 方案一 在jar包同级,写个bat文件,如下 方案二 右击jar文件 -》打开方式-》选择安装的jre/bin/javaw.exe。 双击依然不行,因为双击相当于执行cmd命令 阅读全文
posted @ 2018-04-12 09:30 秋夜雨巷 阅读(9002) 评论(0) 推荐(0)
摘要: sql语句执行顺序: from > join > on > where > group by > avg,sum.... > having > select > distinct > order by > limit 存储过程优点: 存储过程是一组予编译的 SQL 语句,它的优点有: 允许模块化程序 阅读全文
posted @ 2018-04-10 14:25 秋夜雨巷 阅读(1799) 评论(0) 推荐(0)
上一页 1 ··· 88 89 90 91 92 93 94 95 96 ··· 106 下一页