Tutorial library
Skyway Builder MVC Tutorial, Version 6.3
A guided build of a small Spring MVC application, from the first model package to a running list and edit screen.
The MVC tutorial is the recommended starting point for new users. It builds a small customer application with a list screen and an edit form, then shows how a model change reaches every layer after a generation run.
What the tutorial covers
- Creating a project and arranging packages by layer.
- Modelling an entity with attributes and constraints.
- Generating the repository, service and controller layers.
- Generating the list and form views.
- Deploying the application and checking the first request.
How to use the tutorial
Read one chapter, then stop and repeat the steps in your own workspace. The tutorial is written as a sequence, and each chapter assumes that the previous one is complete. If a step fails, check the generation report before changing the model. The report names the element that could not be generated.
Requirements
The tutorial assumes a Java runtime, an Eclipse based IDE and a local servlet container. A database is optional because the sample uses an embedded store. The exercises use the default recipe set, so no custom templates are required.
Where to go next
After the MVC tutorial, build the Spring Web Flow tutorial. It reuses the same model and shows how a multi page journey is assembled from states and transitions. Together the two tutorials cover the main generation paths in Skyway Builder.