PageRenderTime 35ms CodeModel.GetById 31ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/samples/scalate-sample-spring-mvc/src/main/webapp/WEB-INF/web.xml

http://github.com/scalate/scalate
XML | 45 lines | 21 code | 1 blank | 23 comment | 0 complexity | 99fc1d08a2abe80d4a3b713291cbe8a6 MD5 | raw file
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!--
 3
 4    Copyright (C) 2009-2011 the original author or authors.
 5    See the notice.md file distributed with this work for additional
 6    information regarding copyright ownership.
 7
 8    Licensed under the Apache License, Version 2.0 (the "License");
 9    you may not use this file except in compliance with the License.
10    You may obtain a copy of the License at
11
12        http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20-->
21<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
22  <display-name>Scala Spring MVC 3 Web Site</display-name>
23  <servlet>
24    <servlet-name>dispatcher</servlet-name>
25    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
26    <load-on-startup>1</load-on-startup>
27        <!-- Configure DispatcherServlet to use JavaConfigWebApplicationContext
28             instead of the default XmlWebApplicationContext -->
29    <init-param>
30      <param-name>contextClass</param-name>
31      <param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
32    </init-param>
33        <!-- Again, config locations must consist of one or more comma- or space-delimited
34             and fully-qualified @Configuration classes -->
35    <init-param>
36      <param-name>contextConfigLocation</param-name>
37      <param-value>org.fusesource.scalate.sample.springmvc.config.AppConfig</param-value>
38    </init-param>
39  </servlet>
40
41  <servlet-mapping>
42    <servlet-name>dispatcher</servlet-name>
43    <url-pattern>/</url-pattern>
44  </servlet-mapping>
45</web-app>