Nov 13th, 2009, 07:53 PM
Need help!! Newbie to spring framework
Hi Experts, could any one please help in installing the spring framework? What are the steps to install? and the resource links to the software to download?
Any pointers to the same should also be fine. Im sorry if this is the wrong thread to post this query. Thank you.
Last edited by new help please; Nov 13th, 2009 at 07:57 PM.
Nov 16th, 2009, 06:59 PM
How did you find this site??? I mean, seriously... Did you google it?
Did you see the Documentation and Download tabs in the header at the top of this page - the page you are looking at now?
Nov 16th, 2009, 10:50 PM
Hi Thanks for you reply. I am very new to spring framework. i checked the download and documentation sections. could you pls help me in installation. What are the steps to install? do i have to first insatll java1.5, then spring framework? what is its version? what version of ant? what is the version of IDE? which server? tomcat or dm server? etc.Could you pls point me any blogs which describe the installation steps.Thanks again.
Nov 17th, 2009, 07:06 AM
Spring comes as a collection of libraries - JAR files - that you may add to your application as dependencies. No special "installation" is required. I would recommend using Maven to configure and manage your projects, though. Read about Maven here: http://maven.apache.org/
Are you planning to work on a web application? Spring does not dictate which app server to use. You can use pretty much anything that suits your application's needs, and use Spring for all the things that Spring is good for. Read the Spring documentation:
Start with Rod Johnson's article "Introducing Spring..."
If you are working on a web application I would strongly recommend downloading the Spring WebFlow distribution (even if you don't yet need to implement a flow-like behavior) and study the Hotel Booking sample application that comes with it. It is probably the best example of how to use Spring Web MVC (with or without WebFlow) to write web applications. To deploy and run the sample application, simply download the latest version of Tomcat, drop the war file into Tomcat's webapps folder, and start Tomcat.
Use your favorite IDE (Eclipse, IntelliJ, Netbeans, whatever.) You can also download Spring IDE.
If your IDE supports Maven (it should, if it is one of the above), try creating a new project from Maven. Install Maven (read the instructions on teh Maven site.) When creating a new project in your IDE, tell the IDE that you want to create a new peject from a Maven configuration, and, when prompted, point your IDE to the "pom.xml" in the sample application's folder. The IDE will create the Hotel Booking web application project with all dependencies. You can study the pom.xml file to see how Maven can be used to declare and load dependencies. Note that if you are using Maven, all the jar dependencies (including the necessary Spring jars) will be automatically downloaded from the repositories specified in your Maven settings.
This should get you started. But, please, read the documentation patiently.
Oh, yes, you do need to install Java on you machine - if you are planning to write Java applications. JDK 1.5 or later - for Spring 3.x
Last edited by constv; Nov 17th, 2009 at 07:11 AM.
Nov 17th, 2009, 11:21 AM
Hi Constantine, thank you so much for your help. I follow your instructions and start reading the docs and practising.Thanks a lot again.
Tags for this Thread