Spring MVC QuickStart - Maven Archetype
Save yourself hours !! by building a Spring MVC Web Application using this Maven Archetype
While chatting with students, I've discovered that some of the sticking points about using the Spring framework are;
- 1) Where do I find all the compatible dependencies for the version of Spring I'm using?
- 2) I want to start using Spring JavaConfig in my Spring Web App but how where do I start?
- 3) What does the project structure look like for a Web application, where do all the parts go?
- 4) I here that the web.xml file is not needed anymore, is that true ?
- 5) How does Spring work with Apache Maven ?
- 6) What is the folder structure like for a Spring MVC project, using Maven?
- … and many others.
I've created this course which gives you an Apache Maven Archetype for Spring MVC 4 web application and it should go someway to answering those questions!
Just download the 'spring-mvc-sample-1.0.0.jar' file and install it into your local Maven repository and then you can generate a brand new Spring 4 Web Application. To set up just
watch the tutorial and following along!
The provided Maven Archetype is a template for creating a Spring MVC 4 Web application. Maven will use this Archetype to generate a full blown Spring MVC web application for you.
This can then act as an example or starting point for your own Spring MVC project, saving you from hours of boiler plate configuration and set up. It's purpose as an educational tool, showing how Apache Maven, Spring MVC and all its dependencies work together. It also acts as demonstration on how to configure a No-xml Spring MVC 4.
The functionality of the example Web Application itself is not important but it provides the following;
- Example of a Maven Web Application and standard Maven directory layout for a web application.
- Example No-xml Spring MVC 4 web application for Servlet 3.0 environment.
- Example of using io.spring.platform for dependency management.
- Example Internationalization (i18n) configuration,
- Example of JPA 2.0 (Hibernate/HSQLDB/Spring Data JPA) configuration.
- Example of JUnit/Mockito configuration.
The Set up tutorial provided here, shows how to install the provided 'spring-mvc-sample-1.0.0.jar' file after it's downloaded.
So, just download the 'jar' file attached. Watch the 'Set-Up' tutorial and follow along.
(Note: There is no sound with this video!)
One final note if you enjoy this Archetype and get something from it, please share this course on Google+, Twitter or Facebook etc... Thanks ;)
Remember Sharing is caring !!
Bruce is a techie, a gadget geek, programmer, mentor and all round technology nut. With over 25 years in the software business as an IT Contractor and a former University Lecturer in Computer Studies, he's currently working freelance as a Software Engineering Trainer. He loves what technology can do for us. Building applications using Functional, Object Orientated languages & polyglot persistence helps him reconnect with the feeling of building something tangible.