Table of Contents
The latest Spring by Example repository is available at https://github.com/spring-by-example/spring-by-example.
Older projects can be checked out directly from the Subversion repository located at http://svn.springbyexample.org/.
The projects were setup to be imported as Maven projects into Eclipse, but because of some issues some Eclipse files are checked for reference. Maven can also be used to generate IntelliJ project files.
$ mvn idea:idea
Checkout the project using Git from Spring By Example Repository. The first command will checkout all of the current Spring by Example projects, and the second will checkout the specific tag that corresponds to this document.
$ git clone git://github.com/spring-by-example/spring-by-example.git $ cd spring-by-example $ git checkout sbe-1.2.2
Download and install the SpringSource Tool Suite Download. It's free and simplifies the IDE setup. The SpringSource Tool Suite is based on the Eclipse IDE, but has all the SpringSource plugins installed as well as others like for AspectJ and Maven.
Navigate to the projects trunk using the Subversion repository browser.
Right click on 'trunk', select 'Checkout...', click on the 'Finish' button.
Show Sever View
Right click in the Server View and select 'New/Server'.
Choose the installed server (for example Tomcat if that is the server you chose to install).
Right click on project and select 'Run As'/'Run on Server'.
Choose the server to run the project on.
Click on Next.
Click on Finish.
This should launch the application and also open up a browser window in Eclipse pointing to the webapps home page.