[BAEL-11603] - Moved MessageController to a child package and removed ExcelPOIHelper bean definition from TestConfig

This commit is contained in:
amit2103 2019-07-19 00:10:31 +05:30
parent a5d63e6cff
commit da86b78fa5
2 changed files with 2 additions and 9 deletions

View File

@ -1,4 +1,4 @@
package com.baeldung.web.controller;
package com.baeldung.web.controller.message;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;

View File

@ -13,11 +13,9 @@ 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" })
@ComponentScan(basePackages = { "com.baeldung.web.controller.message" })
public class TestConfig implements WebMvcConfigurer {
@Autowired
@ -46,9 +44,4 @@ public class TestConfig implements WebMvcConfigurer {
templateEngine.setTemplateResolver(templateResolver());
return templateEngine;
}
@Bean
public ExcelPOIHelper excelPOIHelper() {
return new ExcelPOIHelper();
}
}