This commit is contained in:
eugenp
2013-07-26 11:38:44 +03:00
parent 819fb33d2a
commit e9e91d8019
3 changed files with 51 additions and 43 deletions

View File

@@ -1,4 +1,4 @@
package org.baeldung.spring.web.config;
package org.baeldung.spring;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

View File

@@ -6,12 +6,18 @@
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<display-name>Spring MVC Application</display-name>
<display-name>Spring MVC No XML Application</display-name>
<!-- Spring root -->
<context-param>
<param-name>contextClass</param-name>
<param-value>
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/mvc-servlet.xml</param-value>
<param-value>org.baeldung.spring</param-value>
</context-param>
<listener>