All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jeromeloisel.db.integration.test.TestConversionConfig Maven / Gradle / Ivy

There is a newer version: 5.6.3
Show newest version
package com.jeromeloisel.db.integration.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.jeromeloisel.db.conversion.api.JsonSerializationFactory;
import com.jeromeloisel.db.conversion.jackson.JacksonSerializationFactory;

@Configuration
class TestConversionConfig {

  @Bean
  ObjectMapper objectMapper() {
    final ObjectMapper mapper = new ObjectMapper();
    mapper.findAndRegisterModules();
    return mapper;
  }
  
  @Bean
  @Autowired
  JsonSerializationFactory jsonSerializationFactory(final ObjectMapper mapper) {
    return new JacksonSerializationFactory(mapper);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy