This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

complete XML for mimicing annotation-driven

Mar 31st, 2011, 06:41 AM

I found the following XML code listing by Keith Donald in Jira-6306 and I wonder if this a complete listing of what <mvc:annotation-driven/> actually does? In other words, will the XML code listing below give the same functionallity as <mvc:annotation-driven/>? The example is related to the Pet Clinic example app and made to illustrate the JIRA. Perhaps it's not fully complete? :

Also interesting comments about "if JAXB2 is detected on the classpath (it looks for jaxax.xml.bind.Binder), then Jaxb2RootElementHttpMessageConverter is added to the message converter list. If Jackson is detected (it looks for org.codehaus.jackson.map.ObjectMapper and org.codehaus.jackson.JsonGenerator), MappingJacksonHttpMessageConverter is added as well.