minor cleanup

This commit is contained in:
Eugen 2013-04-30 12:20:25 +03:00
parent 16e74dcca4
commit 35fbbd7822
3 changed files with 10 additions and 4 deletions

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="launchpad-web">
<wb-module deploy-name="spring-mvc">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<property name="context-root" value="launchpad-web"/>
<property name="java-output-path" value="/launchpad-web/target/classes"/>
<property name="context-root" value="spring-mvc"/>
<property name="java-output-path" value="/spring-mvc/target/classes"/>
</wb-module>
</project-modules>

View File

@ -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);

View File

@ -17,7 +17,7 @@
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>org.package1.to.scan org.package2.to.scan</param-value>
<param-value>org.baeldung.spring.web.config</param-value>
</context-param>
<listener>