Spring Framework Installation
Before we are going to see the example on setter injection with primitive, let us see how to install spring framework in your system.
Few Points regarding this..
- Working with a frame work software is nothing but working with a set of jars given by that framework
- If we want to use spring framework in a java client application then we need to set the framework jars in class path
- Spring is distributed as a COMBINED jar file for all modules [ 7 modules ] and also individual jar file for each module [1 for core, 1 for Context, 1 for ..bla bla… i mean provided separate jar file for each module]
- Spring is initially released by interface 21, and now it is renamed as springsource.org
- www.springsource.org, download spring framework 2.5 for initial programming programs –> unzip and find the jars in dist folder
- The main jar file of spring is called spring.jar it depends on commons-logging.jar (will not come with spring, just get it from some where in the internet)
- Am going to set spring.jar and commons-logging.jar, so that no need to set separate jar for each module, these 2 are sufficient for all modules. If not so you can set individual jar files for each module, its little tedious
So in order to work with spring framework we need to set following two jars in classpath
Now we will see the example On setter injection with primitive values, if you see the first example you will be able to understand all future concepts easily
You Might Also Like
::. About the Author .::