--- /dev/null
+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) {
+
+ }
+}
<util:constant static-field="com.fasterxml.jackson.databind.MapperFeature.DEFAULT_VIEW_INCLUSION"/>
</array>
</property>
+ <property name="modulesToInstall" ref="customJacksonModules"/>
</bean>
<util:list id="messageConverters">
<bean id="handlerMapping" class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping"/>
+
+ <util:list id="customJacksonModules">
+ <array>
+ <value type="java.lang.Class">de.spring.example.rest.resource.modules.SpringJpaModule</value>
+ </array>
+ </util:list>
+
<mvc:default-servlet-handler />
</beans>