From 2442a16d2886834b45654541706390b1eb82f475 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Tue, 26 Jul 2016 22:19:40 +0200 Subject: [PATCH] Spring JPA: jackson custom serializing --- .../spring/example/rest/resource/modules/SpringJpaModule.java | 11 +++++++++++ .../resources/spring-configuration/mvc/rest/rest-config.xml | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 SpringJava/JPA/spring-jpa-resources/src/main/java/de/spring/example/rest/resource/modules/SpringJpaModule.java 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 + + + -- 2.1.4