use of org.springframework.format.support.FormattingConversionServiceFactoryBean in project spring-framework by spring-projects.
the class EvalTagTests method setUp.
@Before
public void setUp() throws Exception {
context = createPageContext();
FormattingConversionServiceFactoryBean factory = new FormattingConversionServiceFactoryBean();
factory.afterPropertiesSet();
context.getRequest().setAttribute("org.springframework.core.convert.ConversionService", factory.getObject());
context.getRequest().setAttribute("bean", new Bean());
tag = new EvalTag();
tag.setPageContext(context);
}
use of org.springframework.format.support.FormattingConversionServiceFactoryBean in project spring-data-document-examples by spring-projects.
the class HandlerAdapterConfiguration method conversionService.
@Bean
public ConversionService conversionService() {
FormattingConversionServiceFactoryBean fb = new FormattingConversionServiceFactoryBean();
fb.afterPropertiesSet();
FormattingConversionService cs = fb.getObject();
return cs;
}
Aggregations