---
title: "spring-mvc.xml"
author: "dengwenjun"
date: "2014-11-28T08:58:26Z"
tags: []
categories: ["企业架构"]
slug: "spring-mvc-xml"
draft: false
lastmod: "2014-11-28T08:59:26Z"
id: 2161656
url: "https://dengwenjun.iteye.com/blog/2161656"
---

\[code="java"] text/html;charset=UTF-8 UTF-8 32505856 4096 \[/code] spring-mybatis.xml \[code="java"] com.vanceinfo.javaserial.services.* \[/code] \[code="java"] \[/code] \[code="java"] driverClassName=com.mysql.jdbc.Driver validationQuery=SELECT 1 jdbc\_url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull jdbc\_username=root jdbc\_password=1234 sessionInfoName=sessionInfo uploadFieldName=filedata uploadFileMaxSize=20971520 uploadFileExts=txt,rar,zip,doc,docx,xls,xlsx,jpg,jpeg,gif,png,swf,wmv,avi,wma,mp3,mid uploadDirectory=attached com.vanceinfo.emailtemplate/myEmail=emailtemplates/myEmail.vm com.vanceinfo.emailtemplate/myEmaillogo=emailtemplates/FlyingBird.jpg com.vanceinfo.emailtemplate/sendMailHost=smtp.gmail.com com.vanceinfo.emailtemplate/sender=kingnaliu@gmail.com \[/code] web.xml \[code="java"] mybatis contextConfigLocation classpath:spring.xml,classpath:spring-mybatis.xml,classpath:spring-mvc.xml,classpath:spring-scheduler.xml 字符集过滤器 encodingFilter org.springframework.web.filter.CharacterEncodingFilter 字符集编码 encoding UTF-8 encodingFilter /* spring监听器 org.springframework.web.context.ContextLoaderListener org.springframework.web.util.IntrospectorCleanupListener spring mvc servlet springMvc org.springframework.web.servlet.DispatcherServlet spring mvc 配置文件 contextConfigLocation classpath:spring-mvc.xml 1 springMvc / /index.jsp 15 log4jConfigLocation classpath:log4j.xml org.springframework.web.util.Log4jConfigListener \[/code]