project cleanup

This commit is contained in:
eugenp 2013-07-26 12:06:38 +03:00
parent abb54b915c
commit e1d9737d9f
6 changed files with 11 additions and 12 deletions

View File

@ -3,6 +3,12 @@ package org.baeldung.servlet;
import org.baeldung.spring.ClientWebConfig;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
/**
* <b>Further reading</b>: <br/>
* - http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/mvc.html#mvc-container-config <br/>
* - http://geowarin.wordpress.com/2013/01/23/complete-example-of-a-spring-mvc-3-2-project/ <br/>
* - http://www.objectpartners.com/2012/01/16/introduction-to-servlet-3-0/ <br/>
*/
public class WebAppNew extends AbstractAnnotationConfigDispatcherServletInitializer {
public WebAppNew() {

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.web.config;
package org.baeldung.config;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@ -6,7 +6,7 @@ import org.springframework.web.servlet.config.annotation.EnableWebMvc;
@EnableWebMvc
@Configuration
@ComponentScan({ "org.baeldung.spring.web.controller" })
@ComponentScan({ "org.baeldung.controller" })
public class MvcConfig {
public MvcConfig() {

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.web.controller;
package org.baeldung.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.web.controller;
package org.baeldung.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;

View File

@ -1,7 +0,0 @@
<html>
<head></head>
<body>
<h1>This is the body of the sample view</h1>
</body>
</html>

View File

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