Last, but by no means least, on lines 48???62, I instan??ti??ate the ContentNegotiatingViewResolver, con??fig??ur??ing it with the media types map and giv??ing it the MappingJacksonJsonView and XStreamMarshaller as default views (so that we can get a JSON or XML rep??re??sen??ta??tion of any URI, if we so desire).