Spring MVC Step By Step with final task for beginners part-5

We learn spring mvc step by step in last 4 parts.If you have not yet visit my previous posts Please visit and proceed with us.Here below the links of Spring MVC step by step

1.  Spring MVC step by step with maven-Part1

2.  Spring MVC step by step with Model Introduction-Part2

3. Spring MVC step by step with Service and DAO layer-Part3

4. Spring MVC Step By Step with Database access using hibernate Part-4


Please take a deeper look my previous posts to learn Spring. And then now I discuss all about to run this project step by step

1. First You need to set up java Environment.

2. Install an IDE (I am using Intelij Idea)

3. Download maven from apache maven site

4. Extract zip file and put it in a location of your pc.Now create a environment variable M2_HOME
like this "C:\Program Files (x86)\apache-maven-3.0.4" and then add a path variable like this "%M2_HOME%\bin"

5. Open command prompt and goto your project root. and run "mvn clean package"

6. Now you can see your project root and a target folder created in project root.

7. In this target folder you can see that a HelloWorldSpring.war is ready for you.So your war file is now ready for deployment.

8. You can use a web server to deploy this.I used Tomcat.You can download tomcat from apache site.



You can download full project from HelloWorldSpring


Wait for my next post on Spring MVC more advance.... :) Happy Coding
Reactions

Post a Comment

0 Comments