- 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
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:
Post a Comment