diff --git a/spring-mvc/.settings/org.eclipse.wst.common.component b/spring-mvc/.settings/org.eclipse.wst.common.component index dcefbbc2ac..9784ac36ee 100644 --- a/spring-mvc/.settings/org.eclipse.wst.common.component +++ b/spring-mvc/.settings/org.eclipse.wst.common.component @@ -1,10 +1,10 @@ - + - - + + diff --git a/spring-mvc/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java b/spring-mvc/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java index 2446e7b614..93b0f9be79 100644 --- a/spring-mvc/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java +++ b/spring-mvc/src/main/java/org/baeldung/spring/web/config/ClientWebConfig.java @@ -14,6 +14,12 @@ import org.springframework.web.servlet.view.JstlView; // @ComponentScan("org.package1.to.scan.web") public class ClientWebConfig extends WebMvcConfigurerAdapter { + public ClientWebConfig() { + super(); + } + + // API + @Override public void addViewControllers(final ViewControllerRegistry registry) { super.addViewControllers(registry); diff --git a/spring-mvc/src/main/webapp/WEB-INF/web.xml b/spring-mvc/src/main/webapp/WEB-INF/web.xml index 6ab6f3db01..a8e377b131 100644 --- a/spring-mvc/src/main/webapp/WEB-INF/web.xml +++ b/spring-mvc/src/main/webapp/WEB-INF/web.xml @@ -17,7 +17,7 @@ contextConfigLocation - org.package1.to.scan org.package2.to.scan + org.baeldung.spring.web.config