From the course: Complete Guide to Spring MVC
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
XML marshalling - Spring Tutorial
From the course: Complete Guide to Spring MVC
XML marshalling
- [Instructor] XML Marshalling. XML marshalling involves converting Java objects into XML data. In Spring MVC, you can leverage tools like Jackson, JAXB, and Spring OXM for seamless XML serialization and deserialization. In this lesson, we'll learn about XML marshalling using Spring MVC. There are three main components for XML marshalling in Spring MVC. Starting with Jackson XML module. Jackson provides a powerful XML extension called jackson-dataformat-xml that integrates seamlessly with Spring MVC to handle XML serialization. It works out of the box with ResponseBody and RequestBody for RESTful endpoints, which we should all be familiar with from early examples in this course. Next is JAXB, or Java architecture for XML binding. You can annotate Java classes using JAXB annotations like XmlRootElement to control XML structure and it works well for both marshalling and unmarshalling. Next is Spring OXM, which stands for object and XML mapping. This is a higher level abstraction for XML…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Groovy Markup overview4m 23s
-
(Locked)
Thymeleaf4m 34s
-
(Locked)
FreeMarker overview3m 24s
-
(Locked)
Script views overview4m 42s
-
(Locked)
JSP and JSTL overview3m 54s
-
(Locked)
RSS and Atom4m 18s
-
(Locked)
PDF and Excel overview3m 43s
-
(Locked)
Jackson overview5m 3s
-
(Locked)
XML marshalling4m 31s
-
(Locked)
XSLT views overview5m 51s
-
(Locked)
-
-
-