[BAEL-11603] - Moved MessageController to a child package and removed ExcelPOIHelper bean definition from TestConfig
This commit is contained in:
parent
a5d63e6cff
commit
da86b78fa5
|
@ -1,4 +1,4 @@
|
||||||
package com.baeldung.web.controller;
|
package com.baeldung.web.controller.message;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
|
@ -13,11 +13,9 @@ import org.thymeleaf.spring4.SpringTemplateEngine;
|
||||||
import org.thymeleaf.spring4.view.ThymeleafViewResolver;
|
import org.thymeleaf.spring4.view.ThymeleafViewResolver;
|
||||||
import org.thymeleaf.templateresolver.ServletContextTemplateResolver;
|
import org.thymeleaf.templateresolver.ServletContextTemplateResolver;
|
||||||
|
|
||||||
import com.baeldung.excel.ExcelPOIHelper;
|
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableWebMvc
|
@EnableWebMvc
|
||||||
@ComponentScan(basePackages = { "com.baeldung.web.controller" })
|
@ComponentScan(basePackages = { "com.baeldung.web.controller.message" })
|
||||||
public class TestConfig implements WebMvcConfigurer {
|
public class TestConfig implements WebMvcConfigurer {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -46,9 +44,4 @@ public class TestConfig implements WebMvcConfigurer {
|
||||||
templateEngine.setTemplateResolver(templateResolver());
|
templateEngine.setTemplateResolver(templateResolver());
|
||||||
return templateEngine;
|
return templateEngine;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
|
||||||
public ExcelPOIHelper excelPOIHelper() {
|
|
||||||
return new ExcelPOIHelper();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue