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.
相关文档:
尽量复用对象,而不是创建新的对象,特别是当一个对象是immutable(不可改变)的时候。 如String对象, String s= new String(“String”); 千万不要这样做,因为这里实际上创建了两个对象。 要避免出现这样的情况, 1是可以用静态工厂函数,来解决,如类库中的Boolean.valueOf(“true”),这种方式要优于n ......
Java, .Net发展方向和前景
JAVA语言发明已有10年历史,在IBM、SUN等公司的推动下已经比较稳定与成熟,获得了大规模企业的普遍应用。时至今日,J2EE已经发展成为一个覆盖面广,效率高,易用性强的技术平台,吸引了400万开发者,在网络技术遍及全球的的今天,更有17.5亿台设备使用JAVA技术.同时, Mustang版本的J2EE正在紧锣 ......
13.1.2 类集框架主要接口
在整个Java类集中最常使用的类集接口是:Collection、List、Set、Map、Iterator、ListIterator、Enumeration、SortedSet、SortedMap、Queue、Map.Entry,这些接口的具体特点如表13-1所示。
表13-1 类集框架接口的具体特点
序 号
接 口
描&nb ......
泛型(Generic type 或者generics)是对 Java 语言的类型系统的一种扩展,以支持创建可以按类型进行参数化的类。可以把类型参数看作是使用参数化类型时指定的类型的一个占位符,就像方法的形式参数是运行时传递的值的占位符一样。
可以在集合框架(Collection framework)中看到泛型的动机。例如,Map类允许您向一个Map添 ......
JDK1.5中的线程池(java.util.concurrent.ThreadPoolExecut
6
推荐
在多线程大师Doug Lea的贡献下,在JDK1.5中加入了许多对并发特性的支持,例如:线程池。
一、简介
线程池类为 java.util.concurrent.ThreadPoolExecutor,常用构造方法为:
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize,
long keepA ......