Please read first some good rest guide like http://www.vogella.com/tutorials/REST/article.html
- Download Java 7 or above on your PC
- Check that you have maven: mvn --version
- Download maven if needed- https://maven.apache.org/download.cgi (the binary one)
- Unzip it
- Put it in you Environment Variable for example: C:\apache-maven-3.3.9\bin
- Eclipse or other environment to write your code at
- download git and install it https://git-scm.com/download/win
- use git to check out the code
- Run git clone https://github.com/ofiratt/MavenJavaSpringJerseyTomcat in your workspace
- Run mvn clean install to compile your code
- Run mvn eclipse:eclipse in order to see the project at eclipse and run it again when you change your project hierarchy or adding new libraries to the pom.xml file
- Run tomcat server mvn clean install tomcat7:run
- See your host will be at http://localhost:9090
- Try to run http://127.0.0.1:9090/getText And http://127.0.0.1:9090/getText?name=ofir