1 import java.io.*; 2 import java.nio.charset.Charset; 3 import java.util.Enumeration; 4 import java.util.zip.ZipEntry; 5 import java.util.zip.ZipFile ...
分类:
编程语言 时间:
2020-08-10 16:10:29
阅读次数:
67
工厂方法模式模式动机与定义模式动机模式定义工厂方法模式(FactoryMethodPattern)简称工厂模式,也叫虚拟构造器(VirtualConstructor)模式或者多态工厂(PolymorphicFactory)模式,它属于类创建型模式。在工厂方法模式中,工厂父类负责定义创建产品对象的公共接口,而工厂子类则负责生成具体的产品对象,这样做的目的是将产品类的实例化操作延迟到工厂子类中完成,即
分类:
其他好文 时间:
2020-08-10 10:58:13
阅读次数:
78
一、守护进程的基本编码规范 详细参见:《AdvancedProgrammingin The Unix Environment》Section 13.3 Page 583 本小节将介绍一些守护进程的基本编码规范,这些规范将阻止守护进程与当前环境产生一些不必要的交互。本节将通过一个函数daemonize ...
分类:
编程语言 时间:
2020-08-08 23:43:37
阅读次数:
95
list arrayList 多线程不安全 //java.util.ConcurrentModificationException 解决办法 * 1,new Vector<>();并发性能下降很大(所有操作都加锁) * 2,Collections.synchronizedList(arrayList ...
分类:
其他好文 时间:
2020-08-07 12:36:37
阅读次数:
77
Leetcode.345 Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hell ...
分类:
其他好文 时间:
2020-08-06 09:30:08
阅读次数:
64
1、简介 MBG:Mybatis Generator(代码生成器) 文档http://mybatis.org/generator/configreference/xmlconfig.html 逆向工程: 根据table,逆向分析数据表,自动生成javaBean -- dao -- dao.xml - ...
分类:
其他好文 时间:
2020-08-04 11:26:36
阅读次数:
76
#在EXO中有Get-MailTrafficTopReport,官网:https://docs.microsoft.com/en-us/powershell/module/exchange/get-mailtraffictopreport?view=exchange-ps这个report可以很直观的查处一定时间内每个邮箱的发送量,但是在本地Exchange服务器中却没有。#以下脚本调用了Excha
分类:
其他好文 时间:
2020-08-03 18:42:13
阅读次数:
97
话不多讲,也不知道咋讲!直接上代码 认证信息承载对象【user】 /// <summary> /// 认证用户信息 /// </summary> public class DyUser { /// <summary> /// 用户ID /// </summary> public int UserId ...
分类:
Web程序 时间:
2020-08-01 21:32:30
阅读次数:
138