Java Spring 入门笔记 正在写
1)官方网站
在学习一个技术前直到官方网站是极为必要的,官方网站不但提供安装介质,而且有一手的技术参考资料。闲话简说 http://www.springsource.com/。 以前曾用过springframework.org,不知道为什么要改了名字。
2)经典参考书
有人推荐过Spring In Action, 我自己是从Spring Reference开始读的。
3)流行的版本
Spring 2.0, released in October 2006, and Spring 2.5, released in November 2007.
4) Java SE and Java EE Support
The Spring Framework continues to be compatible with all versions of Java since (and including) Java
1.4.2. This means that Java 1.4.2, Java 5 and Java 6 are supported, although some advanced functionality
of the Spring Framework will not be available to you if you are committed to using Java 1.4.2. Spring 2.5
introduces dedicated support for Java 6, after Spring 2.0's in-depth support for Java 5 throughout the
framework.
Furthermore, Spring remains compatible with J2EE 1.3 and higher, while at the same time introducing
dedicated support for Java EE 5. This means that Spring can be consistently used on application servers
such as BEA WebLogic 8.1, 9.0, 9.2 and 10, IBM was 5.1, 6.0, 6.1 and 7, Oracle OC4J 10.1.3 and
11, JBoss 3.2, 4.0, 4.2 and 5.0, as well as Tomcat 4.1, 5.0, 5.5 and 6.0, Jetty 4.2, 5.1 and 6.1, Resin 2.1,
3.0 and 3.1 and GlassFish V1 and V2.
NOTE: We generally recommend using the most recent version of each application server generation. In
particular, make sure you are using BEA WebLogic 8.1 SP6 or higher and was 6.0.2.19 / 6.1.0.9
or higher, respectively, when using those WebLogic and was generations with Spring 2.5.
As of Spring 2.5, support for JDK 1.3 has been removed, following Sun's official deprecation of JDK 1.3 in late
2006. If you haven't done so already, upgrade to JDK 1.4.2 or higher.
If you need to stick with an application server that only supports JDK 1.3, such as was 4.0 or 5.0, we
recommend using the Spring Framework version 2.0.7/2.0.8 which still supports JDK 1.3.
相关文档:
刚开始学习Java,一直想学但总是坚持不下来,回到家就想着玩游戏,看来是要下决心了,2010年要好好学习Java了.
这是在网上看到的两个小例子,自己也做了一遍.
1.
try
{
FileInputStream in=new FileInputStream("C:/1.txt");
FileOutput ......
尽量复用对象,而不是创建新的对象,特别是当一个对象是immutable(不可改变)的时候。 如String对象, String s= new String(“String”); 千万不要这样做,因为这里实际上创建了两个对象。 要避免出现这样的情况, 1是可以用静态工厂函数,来解决,如类库中的Boolean.valueOf(“true”),这种方式要优于n ......
定时器类Timer在java.util包中。使用时,先实例化,然后使用实例的schedule(TimerTask task, long delay)方法,设定指定的任务task在指定的延迟delay后执行。定时器任务类TimerTask是抽象类,继承并重写其run()方法,可实现具体任务。
schedule(TimerTask task, Date time)设定指定任务task在指定时间time执行。
cancel ......
迅雷面试回来,用了整整一下午(不知道怎么说了,其中等待时间都快2小时了),自己感觉笔试和上机还可以,但技术面谈这一关答得不太好,现在再次感觉互联网公司与一般软件公司的区别了,其中一点就是互联网应用在性能上要求很高,谈了一个小时大部分题目感觉都在谈论性能问题,自己在方面一直是弱项,汗啊:(
仔细回忆了 ......
JDK1.5中的线程池(java.util.concurrent.ThreadPoolExecut
6
推荐
在多线程大师Doug Lea的贡献下,在JDK1.5中加入了许多对并发特性的支持,例如:线程池。
一、简介
线程池类为 java.util.concurrent.ThreadPoolExecutor,常用构造方法为:
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize,
long keepA ......