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

com.arextest.web.api.service.beans.SpringConvertors Maven / Gradle / Ivy

There is a newer version: 0.7.0.1
Show newest version
package com.arextest.web.api.service.beans;

import java.util.Collections;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ConversionServiceFactoryBean;
import org.springframework.core.convert.ConversionService;

@Configuration
public class SpringConvertors {

  @Bean
  public ConversionService conversionService(String2Map linkedHashMap2String) {
    ConversionServiceFactoryBean conversionServiceFactory = new ConversionServiceFactoryBean();
    conversionServiceFactory.setConverters(Collections.singleton(linkedHashMap2String));
    conversionServiceFactory.afterPropertiesSet();
    return conversionServiceFactory.getObject();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy