using System; public class Singleton where T : class, new() { private static T m_instance; public static T instance { get { if (Singleton.m_instance =... ...
分类:
编程语言 时间:
2017-11-25 13:09:34
阅读次数:
120
jdk1.5的推出为我们带来了枚举、泛型、foreach循环、同步工具包等等好东西。其中,泛型的使用为我们的代码开发提供了很大的简便,简化了我们的代码。 1、设计思路 1)GenericDao泛型类提供所有的增删改查功能; 2)所有的dao在继承GenericDao泛型类拥有自身的增删改查功能,不需 ...
分类:
其他好文 时间:
2017-11-23 12:15:17
阅读次数:
233
编写map程序 编写reduce程序 编写main函数 把wordcount.txt放在hdfs的/dyh/data/input/目录下 执行:hadoop jar hdfs.jar com.cvicse.ump.hadoop.mapreduce.WordCount /dyh/data/input/ ...
分类:
其他好文 时间:
2017-11-22 13:05:27
阅读次数:
185
If you're storing anything in MySQL databases that you do not want to lose, it is very important to make regular backups of your data to protect it fr ...
分类:
数据库 时间:
2017-11-20 23:10:22
阅读次数:
228
步骤 === 1. 使用windows自带dism或其他映像(wim)工具将install.wim释放到C盘。 2. 自动答应文件 3. 将答应文件保存为Unattend.xml。 4. 新建文件夹“C:\Windows\Panther”,将Unattend.xml复制到该文件夹。 5. 重启后将跳 ...
最近一直有事,博客也停笔了一段时间,十分抱歉。 这一篇主要讲讲对象的比较,什么是对象的比较,我们知道两个数值类型只需要用“==”符号即可进行相等判断,但如果是两个Goods对象呢?如何进行比较?这时候,我们的equals方法就派上用场了。equals方法是类的祖先Object类的另一个protect ...
分类:
编程语言 时间:
2017-11-20 13:19:33
阅读次数:
111
前面三节讲了jdbcTemplate的使用,这一节讲解NamedParameterJdbcTemplate的使用方法: NamedParameterJdbcTemplate类是基于JdbcTemplate类,NamedParameterJdbcTemplate内部包含了一个JdbcTemplate, ...
分类:
数据库 时间:
2017-11-20 13:05:49
阅读次数:
171
1.懒汉模式。 2. 饿汉式: 饿汉式是线程安全的。 ...
分类:
其他好文 时间:
2017-11-18 18:57:25
阅读次数:
195
不同类型的数据用不同的字母标识: a - array b - boolean d - double i - integer o - common object r - reference s - string C - custom object O - class N - null R - poin ...
分类:
Web程序 时间:
2017-11-17 19:50:56
阅读次数:
263
<Window x:Class="WPFDrawing.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/ ...