摘要:单例模式,也就是在系统中只存在一个事例。它的应用还是比较广泛的,例如产品的功能菜单(功能树),系统上线以后,它就很少进行修改了,为了提供系统的性能,可以在系统中只存在这样一个功能菜单事例。这样单例模式也往往和Caching(缓存)模式同时使用。 package yhp.test.pattern.singleton; public class TestSingleton { ...
阅读全文
03 2005 档案
摘要:利用以下程序生产excel.dll ..\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\TlbImp.exe excel.exe 在.net开发环境中引入excel.dll public void exportToExcel(){ try { Excel.Application oXL = new Excel.Applicatio...
阅读全文
摘要:例子: public class Outbound2splitVO implements Serializable ,Cloneable { private long id; private String brand; public long getId() { return id; } public void setId(long id){...
阅读全文