Spring Environment SetUp

1. Get the latest Eclipse:

http://www.eclipse.org/downloads/

For Installing Plugin:

Install Plugin: Help-> Eclipse Market Place and then search.

Or Help-Install New Software. Click on add and provide name and url.

2. Install Maven:

Maven Eclipse plugin installation step by step:

Open Eclipse IDE

Click Help -> Install New Software.

Click Add button at top right corner.

At pop up: fill up Name as M2Eclipse and Location as http://download.eclipse.org/technology/m2e/releases or http://download.eclipse.org/technology/m2e/milestones/1.0

Now click Ok

After that installation would be started.

Another way to install Maven plug-in for Eclipse:

Open Eclipse

Go to Help -> Eclipse Marketplace

Search by Maven

Click Install button at Maven Integration for Eclipse section

Follow the instruction step by step

After successful installation do the followings in Eclipse:

Go to Window --> Preferences

Observe, Maven is enlisted at left panel

3. Install Tomcat for web developement:

Download from http://tomcat.apache.org/.

Open Eclipse

Click on Servers Tab

Click on No servers are available. Click this link to create a new server.

Click Tomcat vX.X Server and Next

Select Apache installation Directory(Folder where you have downloaded the same) and click Finish.

4. Required Spring and dependent Jars:

Required Spring Framework jar Files

For a typical web application you need the following module jars:

org.springframework.web.servlet

org.springframework.web

org.springframework.asm

org.springframework.beans

org.springframework.core

org.springframework.context

org.springframework.expression

Since most web applications use logging and basic AOP features, you need the following required third-party offerings:

commons-logging-1.1.1

aopalliance-1.0 (only if you use org.springframework.aop)

If you need database access using your preferred ORM tool, you also need these module jars:

org.springframework.orm

org.springframework.jdbc

org.springframework.tx

org.springframework.aop

You also need any dependencies used by your ORM tool of choice and by your JDBC driver.

Adjust any servlet/web dependencies to the versions needed for your servlet container:

servlet-api-2.4

jsp-api-2.1

jstl-1.2