There seems to be no ConversionService bean available, judging by the last nested exception:
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.core.convert.ConversionService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency.
Take a look at the Spring documentation for you to declare a ConversionService bean. In the XML configuration, it will look like this:
<bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean"> <property name="converters"> <set> <bean class="example.MyCustomConverter"/> </set> </property> </bean>
And since you are using Spring Boot, I assume that you are creating the context programmatically, so you should create a method annotated with @Bean that returns a ConverstionService like this ( here ):
@Bean(name="conversionService") public ConversionService getConversionService() { ConversionServiceFactoryBean bean = new ConversionServiceFactoryBean(); bean.setConverters(...);
source share