View Code? Open in Web Editor
NEW
Java Project with Spring Framework for Practice
spring-mvc's Introduction
Java Project with Spring Framework and Maven Build Tool
(A): Steps for Setup a maven project with Eclipse:
- Install Eclipse EE (JDK already installed)
- Goto file menu :- New-> Other-> Maven Project -> default workSpace -> maven-archetype-webApp -> Group and Artifact Id -> finish.
- Add Server:- file->New->Other->Server->Add Tomcat-> finish.
- Configure Server with Project a:- Right Click on Project -> Properties -> Project facets -> check Dynamic Web Module -> ApplyAndClose.
- Configure Server with Project b:- Right Click on Project -> Properties -> Targated Runtimes -> check Tomcat -> ApplyAndClose.
- Run Project on Eclipse:- Right Click on Project -> Run As -> Run on Server.
- Change to External Browser:- window -> Preference -> general->web Browser -> check Chrome -> ApplyAndClose.
(B): fixed Build Issue and Made it work
- Java Compiler JDK: 1.7
- tomcat 7.0
- added javax.servelet dependency in pom.xml
- Project Facets:- Dynamic Web Module 2.3
- Servers: Right click on tomcat server 7 and switch location if Required
- Right click on Project -> Maven -> update Maven if Required
spring-mvc's People
Stargazers
Watchers