Move adsal into its own subdirectory.
[controller.git] / opendaylight / adsal / web / topology / src / main / resources / WEB-INF / Topology-servlet.xml
diff --git a/opendaylight/adsal/web/topology/src/main/resources/WEB-INF/Topology-servlet.xml b/opendaylight/adsal/web/topology/src/main/resources/WEB-INF/Topology-servlet.xml
new file mode 100644 (file)
index 0000000..cb6f2b6
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+  xmlns:context="http://www.springframework.org/schema/context"\r
+  xmlns:mvc="http://www.springframework.org/schema/mvc"\r
+  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd\r
+                      http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd\r
+                      http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">\r
+\r
+  <context:component-scan base-package="org.opendaylight.controller.topology.web"/>\r
+\r
+  <mvc:resources mapping="/js/**" location="/js/" />\r
+  <mvc:resources mapping="/css/**" location="/css/" />\r
+  <mvc:resources mapping="/img/**" location="/img/" />\r
+  <mvc:annotation-driven/>\r
+\r
+  <bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">\r
+        <property name="prefix" value="/WEB-INF/jsp/"/>\r
+        <property name="suffix" value=".jsp"/>\r
+  </bean>\r
+</beans>\r