
Java
bbn9435
这个作者很懒,什么都没留下…
展开
-
通过Singleton单例模式,理解Java的类加载
通过Singleton单例模式,理解Java的类加载---------------------------------------------------------------------public class Singleton { private static Singleton obj = new Singleton(); //1 public static int counter1原创 2006-07-25 14:19:00 · 1140 阅读 · 0 评论 -
使用commons-logging的笔记
commons-logging是Jarkata封装了多种Java Log,如:Log4j、JDK Log、LogKit、NoOpLog、SimpleLog。Eclipse下可以使用Log4E插件,快速插入Logger对象,设置Log4E的模版为commons-logging模版就可以了。并同时把commons-logging和log4j的jar包至于工程的classpath中。在一个类My原创 2007-01-17 16:31:00 · 914 阅读 · 0 评论 -
Java及相关字符集编码问题研究
值得注意的细节,值得一览!1. 概述本文主要包括以下几个方面:编码基本知识,java,系统软件,url,工具软件等。在下面的描述中,将以"中文"两个字为例,经查表可以知道其GB2312编码是"d6d0 cec4",Unicode编码为"4e2d 6587",UTF编码就是"e4b8ad e69687"。注意,这两个字没有iso8859-1编码,但可以用iso8859-1编码来"表示"。原创 2007-01-16 15:45:00 · 637 阅读 · 0 评论 -
tomcat 7在comodo firewall环境下执行shutdown.bat报错
配置tomcat 7集群时突然发现shutdown.bat执行后报错。 tomcat 7主dos窗口报如下错误,每次执行shutdown.bat就报:StandardServer.await: Invalid command 'S' received StandardServer.await: Invalid comm...原创 2012-08-19 09:50:02 · 199 阅读 · 0 评论