Project Setup - AyushiDamele/Spring GitHub Wiki
Open eclipse IDE :
- Fie-> new > project -> maven -> maven project.
- To initialiaze the project : select the arch type or quickstart -> Group ID : "com.ayushi"(any name it will create your package name) , ArtifactID is your project name -> Clikc Finish
- The new project will be created with the maven dependencies which are fetched from remote to your local reprository, when you hover on the name of the dependency it will show you the path, where the dependency is lying on your local machine.(.m2 folder is hidden by default , so to see that folder run the command "ls -a" in terminal or click on "show hidden files" checkbox).
- To download the spring libraries in your project : Add this dependency in pom.xml file :
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.2.4.RELEASE</version>
</dependency>
As soon as you save : spring dependencies will be downloaded.
- Goto -> https://repo.spring.io/release/org/springframework/spring/ find the latest version after scrolling down click on the latest release version and download Release-dist.zip file
- extract the folder and open the lib directory, copy all the jar files.
- Right click on the project and create new folder with name lib
- paste all the jar files in lib folder
- Right click on the project again and click on properties
- Click on java build path
- In the Libraries tab click on Add Jar
- Go to lib folder in your project and select all the jar files and add
- Click on Apply and Close.
- If you are not able to see the servers tab in the console window : 1.1) click on window tab -> Show View -> Other -> Server -> Click on servers 1.2) Now you will able to see the server tab in the console window
- Click on link in the servers tab
- Click on Apache
- Select Tomcat v0.9, as this is the tomcat version installed in my system
- To browse the path of tomcat : C/Program Files/ Apache Software Foundation/Tomcat
- add the path till Tomcat.
- Click on OK.