6.2. About the Spring Archetype example
The Spring Archetype example allows you to create a Spring 4.1 compliant application using Spring MVC, JPA 2.0, and Bean Validation 1.0. It includes a persistence unit, and some sample persistence and transaction code to introduce you to database access in enterprise Java. The Spring Archetype example demonstrates the following:
- The general project structure of a Spring based web application
- A simple set of domain classes, MVC controllers, and web pages
- The data infrastructure configuration (including database, JPA, and transactions) for running Spring applications on JBoss Enterprise Application Platform
The following tasks are explored in the Spring Archetype example:
- Creating a project
- Adding source code
- Adding Spring configuration files
- Running the example
The following section demonstrates the Spring Archetype example using Red Hat JBoss Developer Studio to develop a simple Spring Model-View-Controller (MVC) web application on Red Hat JBoss Enterprise Application Platform.