---
title: "Spring mvc web.xml 配置"
author: "lavakn"
date: "2009-04-24T11:52:21Z"
tags: []
slug: "spring-mvc-web-xml"
draft: false
lastmod: "2009-04-24T11:52:21Z"
id: 373886
url: "https://lavakn.iteye.com/blog/373886"
---

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
	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_2_5.xsd">
	 <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/freemarker-servlet.xml</param-value>
  </context-param>
  <listener>
     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
   </listener>
   
 <servlet>
    <servlet-name>freemarker</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
     <servlet-name>freemarker</servlet-name>
     <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>

    
</web-app>