Since the big Spring 3 release last year, I've been working on a number of application development projects and extracting "showcases" of various framework features. These "showcases" are not reference applications or tutorials, they're more like acceptance tests for specific framework capabilities. After seeing a showcase, you should have a good idea of what the technology can do.
The first showcase I've put together is for Spring MVC 3, our web framework. It includes a sample project, along with a supporting slide presentation and screencast. After digging in, you should have a good understanding of what Spring MVC can do and get a feel for how easy it is to use.
In this showcase you'll see the following in action:
- The simplest possible @Controller
- Mapping Requests
- Obtaining Request Data
- Generating Responses
- Message Converters
- Rendering Views
- Type Conversion
- File Upload
- Exception Handling
I use jQuery to drive feature illustration by applying progressive Ajax techniques. I highly recommend using Firebug or equivalent to gain insight into the client/server interactions. I find it very educational to inspect the request and response details from the client-side, then jump to the code that executed on the server-side.
Get the code by cloning the spring-mvc-showcase project over at Github. Simply import the project into STS as a Maven Project, then drag-n-drop the project onto the "SpringSource tc Server Developer Edition" Server to run.
View the supporting slide show:
See the showcase live in this 8 minute screencast:
The mvc-showcase screencast contains music by the band The Smashing Pumpkins. The mvc-showcase screencast is not affiliated with or endorsed by The Smashing Pumpkins. All audio in the screencast is licensed for non-profit use per the terms and conditions of the live music archive at archive.org.
I hope you find spring-mvc-showcase useful and discover some "hidden gems" you might not have known about before. Please let me know also if you'd like to contribute your own additions. spring-mvc-showcase covers a lot of ground today, but there's always opportunity to cover more!
- Spring Android and Maven (Part 2)
- Introducing Spring Social's Service Provider Framework
- Spring MVC 3.2 Preview: Chat Sample
- Updated Maven Support for Android Projects
- dm Admin Console Demo Screencast