Blog Archives

JAXB with Spring ORM for marshaling tutorial

This extends Basic JAXB tutorial with Maven & XSD – 1 to marshall with Spring OXM and Spring XML.

Right mouse click on target/generated-sources and select “Build Path –> Use as Source Folder

Step 1: add spring-orm to use JAXB and spring-xml to use StringResult.



JAXB with Spring ORM for unmarshaling tutorial

This extends Basic JAXB tutorial with Maven & XSD – 1 to unmarshal with Spring OXM and Spring XML.

The Spring & JAXB marshaling tutorial used XML based config to inject the “jaxb2Marshaller”, but in this to make things a bit more interesting, let’s use “Java” class based Spring configuration with “@Configuration” to inject “jaxb2Marshaller“.…



800+ Java & Big Data Interview Q&As

200+ Java & Big Data Tutorials

Top