Utility class for integrating the Jenetic's JPX library with the serialization logic of Spring. Using this converter, Spring automatically uses JPX's own serialization to read and write GPX objects, ensuring a valid GPX document is produced.
The class GpxMessageConverter
implements the HttpMessageConverter
interface from Spring-web, and can be used where
ever Spring allows injecting its implementation. A detailed description can be found at
https://www.baeldung.com/spring-httpmessageconverter-rest.
Add the dependency to your pom.xml
<dependency>
<groupId>com.metronom</groupId>
<artifactId>spring-jpx-message-converter</artifactId>
<version>1.0.0</version>
</dependency>
or build.gradle
implementation 'com.metronom:spring-jpx-message-converter:1.0.0'