Die Basis für die contextrelativen URL's wird jetzt Applicationweit bestimmt
[website] / src / main / webapp / WEB-INF / spring / mvc.xml
index cc5a037..5fb88cf 100644 (file)
@@ -2,17 +2,23 @@
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:mvc="http://www.springframework.org/schema/mvc"
+       xmlns:context="http://www.springframework.org/schema/context"
        xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
            http://www.springframework.org/schema/mvc
            http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
+           http://www.springframework.org/schema/context
+           http://www.springframework.org/schema/context/spring-context-3.1.xsd
            ">
 
   <!-- Damit das DispatcherServlet auf /* gemappt werden kann -->
   <mvc:default-servlet-handler/>
   <mvc:view-controller path="/" view-name="index"/>
 
+  <!-- Scann classpath for classes anntated as components -->
+  <context:component-scan base-package="de.juplo.branding"/>
+
   <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
     <property name="mappings">
       <value>