<?xml version&#61;"1.0" encoding&#61;"UTF-8"?>
<beans xmlns&#61;"http://www.springframework.org/schema/beans" xmlns:xsi&#61;"http://www.w3.org/2001/XMLSchema-instance"xmlns:aop&#61;"http://www.springframework.org/schema/aop" xmlns:mvc&#61;"http://www.springframework.org/schema/mvc" xmlns:tx&#61;"http://www.springframework.org/schema/tx"xmlns:context&#61;"http://www.springframework.org/schema/context"xsi:schemaLocation&#61;"
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop4.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd">
<!-- 配置Spring的扫描 -->
<context:component-scan base-package&#61;"cn.itsource.ssm"/><!-- 兼容性 -->
<context:annotation-config/><!-- 支持MVC注解 --><mvc:annotation-driven /><!-- 静态资源执行 -->
<mvc:default-servlet-handler/><bean class&#61;"org.springframework.web.servlet.view.InternalResourceViewResolver"><property name&#61;"prefix" value&#61;"/WEB-INF/jsps/"/><property name&#61;"suffix" value&#61;".jsp"/>
</bean><!-- 上传的时候一定要配置上传解析器 -->
<bean id&#61;"multipartResolver" class&#61;"org.springframework.web.multipart.commons.CommonsMultipartResolver"><!-- 设置上传文件的最大尺寸为1MB --><property name&#61;"maxUploadSize"><!-- spring el写法&#xff1a;5MB --><value>#{1024*1024*5}</value></property>
</bean>
</beans>
<?xml version&#61;"1.0" encoding&#61;"UTF-8"?>
<beans xmlns&#61;"http://www.springframework.org/schema/beans" xmlns:xsi&#61;"http://www.w3.org/2001/XMLSchema-instance"xmlns:aop&#61;"http://www.springframework.org/schema/aop" xmlns:mvc&#61;"http://www.springframework.org/schema/mvc" xmlns:tx&#61;"http://www.springframework.org/schema/tx"xmlns:context&#61;"http://www.springframework.org/schema/context"xsi:schemaLocation&#61;"
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop4.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd">
<!-- 配置Spring的扫描 -->
<context:component-scan base-package&#61;"cn.itsource.ssm"/><import resource&#61;"classpath:plugins/applicationContext-mvc.xml"/>
</beans>