[BAEL-11603] - Fixed tests in spring-mvc-java module

This commit is contained in:
amit2103
2019-07-14 01:32:22 +05:30
parent ca53b93176
commit bc8f5ab8c4
2 changed files with 13 additions and 2 deletions

View File

@@ -13,6 +13,8 @@ import org.thymeleaf.spring4.SpringTemplateEngine;
import org.thymeleaf.spring4.view.ThymeleafViewResolver;
import org.thymeleaf.templateresolver.ServletContextTemplateResolver;
import com.baeldung.excel.ExcelPOIHelper;
@Configuration
@EnableWebMvc
@ComponentScan(basePackages = { "com.baeldung.web.controller" })
@@ -44,5 +46,9 @@ public class TestConfig implements WebMvcConfigurer {
templateEngine.setTemplateResolver(templateResolver());
return templateEngine;
}
@Bean
public ExcelPOIHelper excelPOIHelper() {
return new ExcelPOIHelper();
}
}