02 2017 档案

摘要:单例模式主要分为:懒汉式单例、饿汉式单例、登记式单例。 单例模式有以下特点: 1、单例类只能有一个实例。 2、单例类必须自己创建自己的唯一实例。 3、单例类必须给所有其他对象提供这一实例。 单例模式确保某个类只有一个实例,而且自行实例化并向整个系统提供这个实例。在计算机系统中,线程池、缓存、日志对象 阅读全文
posted @ 2017-02-28 19:32 growthofmonkey 阅读(162) 评论(0) 推荐(0)
摘要:# switch to postgres account sudo su postgres # create a new postgres login: jetty; and set the password to jetty # since most of our database dump has jetty as the user createuser -P -d -a -e jet... 阅读全文
posted @ 2017-02-27 16:20 growthofmonkey 阅读(318) 评论(0) 推荐(0)
摘要:注释 阅读全文
posted @ 2017-02-23 10:02 growthofmonkey 阅读(482) 评论(0) 推荐(0)