<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"xmlns:context="http://www.springframework.org/schema/context"xmlns:mvc="http://www.springframework.org/schema/mvc"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsdhttp://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsdhttp://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"><!-- 扫描@Controller @Service base-package 是要扫描注解的包--><context:component-scan base-package="com.situ.mvc"/><!-- 注解驱动 --><mvc:annotation-driven/><!--视图解析器 --><bean class="org.springframework.web.servlet.view.InternalResourceViewResolver "><!-- 路径前缀 --><property name="prefix" value="/WEB-INF/jsp/"/><!-- 路径后缀 --><property name="suffix" value=".jsp"/></bean><!-- 配置拦截器,可以配置多个拦截器 --><mvc:interceptors><mvc:interceptor><mvc:mapping path="/**"/><bean class="com.situ.mvc.interceptor.UserLoginHandlerInterceptor"/></mvc:interceptor></mvc:interceptors><!-- 配置文件上传的解析器 --><bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"><!-- 设置文件上传的最大尺寸 10MB 单位:B--><!-- 1KB=1024B 1M=1024KB --><property name="maxUploadSize"><value>#{10*1024*1024}</value></property></bean></beans>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。