If you want to be master in spring core, you can go for its certification too. You can go through spring certification questions which I found useful.

After having some basic understanding of spring framework now we are ready to create Hello world example.
Firstly download required jars and docs from Spring Downloads | SpringSource.org
Now, In eclipse IDE,click on File->new->Click on other and then select java project

Click on next and Write project name.I have writtern here “HelloWorldInSpring3”

Click on finish and now our project is created

Create new folder “jars” under src folder so for that right click on project->new->folder

Write folder name as “jars”

click on finish and empy jar folder will be created in src folder.

Now we will add the Spring 3. libraries to the project. Extract the “spring-framework-3.1.1.RELEASE-with-docs.zip” file if you have not extracted. Now go to the “dist” directory of the and then copy all the jar files (Ctrl+C) and paste on the jars directory (of our project) in the Eclipse IDE.

Then find the commons-logging.jar from extracted folder and also copy this file into Eclipse IDE. You will find this library into spring-framework-3.0.0.RELEASE-with-docsspring-framework-3.1.1.RELEASEprojectsspring-buildlibivy folder.

Now add all the jars to “Java Build Path”. Right click on the “Spring3HelloWorld” in project explorer and then select properties. Then select “Java Build Path” –> Libraries and then click on the “Add JARs” button. And add all the libraries to Java Build Path.

Create a new package org.arpit.javapostsforlearning to hold the java files. Right click on the “src” folder and then select New –> Package. Then provide the package name as org.arpit.javapostsforlearning and click on the “Finish” button.

Spring hello world example

Create a new Java file Spring3HelloWorld.java under the package org.arpit.javapostsforlearning and add the following code:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

packageorg.arpit.javapostsforlearning;

publicclassSpring3HelloWorld{

Stringname;

publicvoidprintHello()

{

System.out.println("Hello World from "+name);

}

publicStringgetName(){

returnname;

}

publicvoidsetName(Stringname){

this.name=name;

}

}

now create a Xml file called Spring3HelloWorld in src folder.Add following content to it