PageRenderTime 32ms CodeModel.GetById 17ms 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. Copyright (C) 2009-2011 the original author or authors.
  4. See the notice.md file distributed with this work for additional
  5. information regarding copyright ownership.
  6. Licensed under the Apache License, Version 2.0 (the "License");
  7. you may not use this file except in compliance with the License.
  8. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <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">
  17. <display-name>Scala Spring MVC 3 Web Site</display-name>
  18. <servlet>
  19. <servlet-name>dispatcher</servlet-name>
  20. <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  21. <load-on-startup>1</load-on-startup>
  22. <!-- Configure DispatcherServlet to use JavaConfigWebApplicationContext
  23. instead of the default XmlWebApplicationContext -->
  24. <init-param>
  25. <param-name>contextClass</param-name>
  26. <param-value>org.springframework.web.context.support.AnnotationConfigWebApplicationContext</param-value>
  27. </init-param>
  28. <!-- Again, config locations must consist of one or more comma- or space-delimited
  29. and fully-qualified @Configuration classes -->
  30. <init-param>
  31. <param-name>contextConfigLocation</param-name>
  32. <param-value>org.fusesource.scalate.sample.springmvc.config.AppConfig</param-value>
  33. </init-param>
  34. </servlet>
  35. <servlet-mapping>
  36. <servlet-name>dispatcher</servlet-name>
  37. <url-pattern>/</url-pattern>
  38. </servlet-mapping>
  39. </web-app>