SpringMVC 3.1.2的配置
ssi的框架
web.xml
<?xmlversion="1.0"encoding="UTF-8"?>
<web-appxmlns="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"
version="2.5">

<servlet>
<servlet-name>SpringMVC</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/spring-*.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>SpringMVC</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>
spring-core.xml中国菜刀
<?xmlversion="1.0"encoding="UTF-8"?>

<beansdefault-autowire="byName"
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
            xsi:schemaLocation="
                       http://www.springframework.org/schema/beans
                       http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
                       http://www.springframework.org/schema/aop
                       http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
                       http://www.springframework.org/schema/contex
                       http://www.springframework.org/schema/context/spring-context-3.1.xsd
                       http://www.springframework.org/schema/tx
                       http://www.springframework.org/schema/tx/spring-tx-3.1.xsd">

<beanid="propertyConfig"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<propertyname="locations">
<list>
<value>classpath:jdbc.properties</value>
</list>
</property>
</bean>

<beanid="dataSource"class="org.apache.commons.dbcp.BasicDataSource"destroy-method="close">
<propertyname="driverClassName">
<value>${jdbc.driver}</value>
</property>
<propertyname="url">
<value>${jdbc.url}</value>
</property>
<propertyname="username">
<value>${jdbc.user}</value>
</property>
<propertyname="password">
<value>${jdbc.password}</value>
</property>
</bean>

<beanid="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<propertyname="dataSource"ref="dataSource"/>
</bean>

<beanid="sqlMapClient"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<propertyname="configLocation"value="classpath:sqlMapConfig.xml"/>
<propertyname="dataSource"ref="dataSource"/>
</bean>
<beanid="mysqlDialect"class="com.lavasoft.freamwork.core.dialect.MySQLPhysicalSegmentDialect"/>
<beanid="sqlExecutor"class="com.lavasoft.freamwork.core.PhysicalSegmentSqlExecutor">
<propertyname="dialect"ref="mysqlDialect"/>
</bean>

<beanid="baseDao"abstract="true"class="com.lavasoft.freamwork.core.dao.BaseIBatisDAO"init-method="initialize">
<propertyname="dataSource">
<refbean="dataSource"/>
</property>
<propertyname="sqlMapClient">
<refbean="sqlMapClient"/>
</property>
<propertyname="sqlExecutor">
<refbean="sqlExecutor"/>
</property>
</bean>

<beanid="bk_kindDAO"class="com.lavasoft.dxbk.dao.Bk_kindDAO"parent="baseDao"/>
<beanid="bk_taskDAO"class="com.lavasoft.dxbk.dao.Bk_taskDAO"parent="baseDao"/>
<beanid="bk_task_logDAO"class="com.lavasoft.dxbk.dao.Bk_task_logDAO"parent="baseDao"/>
<beanid="bookDAO"class="com.lavasoft.dxbk.dao.BookDAO"parent="baseDao"/>
<beanid="ebookDAO"class="com.lavasoft.dxbk.dao.EbookDAO"parent="baseDao"/>
<beanid="shopdataDAO"class="com.lavasoft.dxbk.dao.ShopdataDAO"parent="baseDao"/>
<beanid="urlregDAO"class="com.lavasoft.dxbk.dao.UrlregDAO"parent="baseDao"/>
<beanid="sec_bk_taskDAO"class="com.lavasoft.dxbk.dao.Sec_bk_taskDAO"parent="baseDao"/>
<beanid="sec_kwDAO"class="com.lavasoft.dxbk.dao.Sec_kwDAO"parent="baseDao"/>
<beanid="sec_subDAO"class="com.lavasoft.dxbk.dao.Sec_subDAO"parent="baseDao"/>
<beanid="secbookDAO"class="com.lavasoft.dxbk.dao.SecbookDAO"parent="baseDao"/>
<beanid="listfileDAO"class="com.lavasoft.dxbk.dao.ListfileDAO"parent="baseDao"/>
<beanid="str2010DAO"class="com.lavasoft.dxbk.dao.Str2010DAO"parent="baseDao"/>
<beanid="pdfdirDAO"class="com.lavasoft.dxbk.dao.PdfdirDAO"parent="baseDao"/>

<beanid="bookSV"class="com.lavasoft.dxbk.service.BookSVImpl">
<propertyname="bk_kindDAO"ref="bk_kindDAO"/>
<propertyname="bookDAO"ref="bookDAO"/>
</bean>
</beans>
spring-mvc.xml
<?xmlversion="1.0"encoding="UTF-8"?>
<beansxmlns="http://www.springframework.org/schema/beans"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
            xsi:schemaLocation="
               http://www.springframework.org/schema/beans
               http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
               http://www.springframework.org/schema/context
               http://www.springframework.org/schema/context/spring-context-3.1.xsd
               http://www.springframework.org/schema/mvc
               http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">

<beanclass="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
<propertyname="messageConverters">
<list>
<beanclass="org.springframework.http.converter.ByteArrayHttpMessageConverter"/>
<beanclass="org.springframework.http.converter.StringHttpMessageConverter">
<propertyname="supportedMediaTypes">
<list>
<value>text/html; charset=utf-8</value>
</list>
</property>
</bean>
<beanclass="org.springframework.http.converter.ResourceHttpMessageConverter"/>
<beanclass="org.springframework.http.converter.xml.SourceHttpMessageConverter"/>
<beanclass="org.springframework.http.converter.xml.XmlAwareFormHttpMessageConverter"/>
<beanclass="org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter"/>
</list>
</property>
</bean>

<mvc:annotation-driven/>
<context:component-scanbase-package="com.lavasoft.dxbk.web.controller"></context:component-scan>

<mvc:resourcesmapping="/js/**"location="/js/"/>
<mvc:resourcesmapping="/css/**"location="/css/"/>

<beanclass="org.springframework.web.servlet.view.InternalResourceViewResolver">
<propertyname="viewClass"value="org.springframework.web.servlet.view.JstlView"/>
<propertyname="prefix"value="/jsp/"/>
<propertyname="suffix"value=".jsp"/>
</bean>

</beans>
spring配置文件在src下面。