if you worked with Spring MVC
framework, you probably awair of its basic configurations including Dispatcher
and web
xml files.
this repository based on maven and already had the basic configuration, all you need is cloneing and using it.
I downloaded this project from Mkyong site and changed and added other things to it
it's so simple.
-
just clone it and import/open it into your IDE (like
IntelliJ
orNetBeans
) and then simply run it (your IDE will automatically compile and deploye it on your web service) -
you can also compile it using maven with following command:
mvn clean install
then copy the
.war
file (which will be created intarget
folder) and deploy it on your web server liketomcat
for checking is it working or not, just after doing previous step, go to {your-localhost-ip}:{port}/Spring-mvc
and if it's working you should see a page with this message:
Spring MVC Quick Start Kit (SMQSK)
Welcome
if you see this page, it means I'm working