Java object to xml | JAXB marshalling — convert java object to xml | Convert java object to xml in java
Jan 28, 2021
In this blog we will discuss Java Object to xml.JAXB marshalling — convert java object to xml. Also we will check how to convert Java objet to xml file.
Java object to xml | JAXB marshalling — convert java object to xml
Maven Dependency:
<! — https://mvnrepository.com/artifact/javax.xml/jaxb-api →
<dependency>
<groupId>javax.xml</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.0</version>
</dependency>
Spring Boot Dependency:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>