WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
NEW MAVEN DEPENDENCY FOR THIS CHAPTER
In addition to the Maven dependencies introduced in previous chapters, you also need the following Maven dependency:
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-oxm</artifactId> <version>4.0.2.RELEASE</version> <scope>compile</scope> </dependency>
In Chapter 12, you were introduced to Spring Framework controllers and how to use the
@RequestMapping annotation to map requests to methods within your controllers.
@RequestMapping is an extraordinarily powerful tool in the Spring toolset, enabling you to map a request with the URL, the
Accept header of the request, the HTTP request method, the presence or value of specified request parameters or headers, or any combination of these.
@RequestMapping, you no longer need complex switches or logic branches within Servlet
doGet or similar methods to select the proper ...