Blog Archives

Spring MVC – Easy REST-Based JSON Services with @ResponseBody

Spring 3 makes JSON REST services really easy. This tutorial will show you how in just a few steps.You can grab the code on GitHub. PrerequisitesYou should have a working Spring MVC Application. If you do not already have a working

Posted in Spring Tagged with: , , , ,

Spring MVC Form Tutorial

This tutorial will show how to handle a form submission in Spring MVC. We will define a controller to handle the page load and the form submission.You can grab the code on GitHub. Prerequisites: You should have a working Spring

Posted in Spring Tagged with: , , ,

Spring Java Configuration

I have found that a lot of Spring developers I know still do not know about or use Spring Java Configuration (aka JavaConfig). Spring 3.0 introduced this feature which allows Spring to be configured entirely in Java – no more

Posted in Spring Tagged with: , , ,

Explicitly defining a Spring MVC Annotation-Based Controller

Beginning with Spring MVC 2.5, MVC controllers can be declared using the @Controller annotation. Spring picks up the controller through this declaration in Spring servlet application context: <context:component-scan base-package=”com.myapp.controller” /> In the past, this has worked perfectly for me, and I

Posted in Java, Spring Tagged with: , ,


Follow Me

RSS FeedFollow me on Twitter