- 论坛徽章:
- 0
|
![]()
Digest, thinking and summary in Reading of Spring in Action
The most famous enterprise application framework--Spring in Java world maybe can divided into three parts.
The core, the middle-tier and web layer. With this point, that Spring in Action is writing in three parts.
One, Spring essentials. Two, Spring in business layer. Three, Spring in the Web Layer.
Here I also want to descripte my feeling about the reading of Spring in Action in three parts.
The core feathes of Spring are Inversion of Control(IoC) and aspect-oriented programming(AOP).
1.It all start with a bean. 2. See how Inject Dependency use in Spring with the XML configuration file and JavaBean setter/getter to program.
notes: Because Spring in Action use Spring1.1.3.jar file which has a number of differents between the lasted 1.2.3 version of Spring. Here is the different is found in List 1.4:
BeanFactory factory = new XmlBeanFactory(new FileInputStream("hello.xml")); -->BeanFactory factory = new XmlBeanFactory(new InputStreamResouce(new FileInputStream("hello.xml")));
And you must include the jakarta-commons/commons-logging.jar if you want to run the example besides spring.jar.
to be continued ...
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8755/showart_38336.html |
|