From: Gustavo Martin Morcuende Date: Tue, 26 Jul 2016 20:19:40 +0000 (+0200) Subject: Spring JPA: jackson custom serializing X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=2442a16d2886834b45654541706390b1eb82f475;p=JavaForFun Spring JPA: jackson custom serializing --- diff --git a/SpringJava/JPA/spring-jpa-resources/src/main/java/de/spring/example/rest/resource/modules/SpringJpaModule.java b/SpringJava/JPA/spring-jpa-resources/src/main/java/de/spring/example/rest/resource/modules/SpringJpaModule.java new file mode 100644 index 0000000..ad5f38d --- /dev/null +++ b/SpringJava/JPA/spring-jpa-resources/src/main/java/de/spring/example/rest/resource/modules/SpringJpaModule.java @@ -0,0 +1,11 @@ +package de.spring.example.rest.resource.modules; + +import com.fasterxml.jackson.databind.module.SimpleModule; + +public class SpringJpaModule extends SimpleModule { + + @Override + public void setupModule(final SetupContext context) { + + } +} diff --git a/SpringJava/JPA/spring-jpa-resources/src/main/resources/spring-configuration/mvc/rest/rest-config.xml b/SpringJava/JPA/spring-jpa-resources/src/main/resources/spring-configuration/mvc/rest/rest-config.xml index e8cc1a8..f78c1d2 100644 --- a/SpringJava/JPA/spring-jpa-resources/src/main/resources/spring-configuration/mvc/rest/rest-config.xml +++ b/SpringJava/JPA/spring-jpa-resources/src/main/resources/spring-configuration/mvc/rest/rest-config.xml @@ -58,6 +58,7 @@ + @@ -97,6 +98,13 @@ + + + + de.spring.example.rest.resource.modules.SpringJpaModule + + +