Sunday, September 28, 2014

Set Up Spring MVC 3 with Maven ( 1 of 3)

There are several steps that you have to finished it before setting up spring 3 application. below are the steps :
  • Install java environment.
  • Install maven
  • Download STS (spring tool suite), you can download in here otherwise you can download eclipse, however I do recommend to install STS since this tools is already customized to do spring development.
  • Install apache tomcat
In this occasion I use Debian as my computer.

Create maven application

open terminal and navigate to your workspace :

$ cd workspace/

type this command to create maven web application:

mvn archetype:create -DgroupId=com.hello -DartifactId=HelloSpring -DarchetypeArtifactId=maven-archetype-webapp


Import your maven into eclipse

cd HelloSpring/
mvn eclipse:eclipse



Open STS Eclipse and import you maven project

Click File -> Import

Choose Existing Project into Workspace


Browse the workspace


 And click Finish.

Below are the Package explorer :



Will continue to the step 2.


No comments: