Skip to Main Content
Spring MVC Beginner's Guide
book

Spring MVC Beginner's Guide

by Amuthan Ganeshan
June 2014
Beginner to intermediate content levelBeginner to intermediate
304 pages
7h 25m
English
Packt Publishing
Content preview from Spring MVC Beginner's Guide

Time for action – configuring ContentNegotiatingViewResolver

ContentNegotiatingViewResolver does not resolve views itself but delegates them to other view resolvers based on the request. Now, let's add the content negotiation capability to our application:

  1. Open pom.xml; you can find pom.xml under the project root directory itself.
  2. You will be able to see some tabs at the bottom of pom.xml file. Select the Dependencies tab and click on the Add button of the Dependencies section.
  3. A Select Dependency window will appear; enter Group Id as org.springframework, Artifact Id as spring-oxm, Version as 4.0.3.RELEASE; select Scope as compile; and then click on the OK button.
  4. Similarly, add one more dependency Group Id as org.codehaus.jackson, Artifact Id as ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring MVC Beginner's Guide - Second Edition

Spring MVC Beginner's Guide - Second Edition

Amuthan Ganeshan
Spring MVC: Designing Real-World Web Applications

Spring MVC: Designing Real-World Web Applications

Shameer Kunjumohamed, Hamidreza Sattari, Alex Bretet, Geoffroy Warin

Publisher Resources

ISBN: 9781783284870Supplemental Content