<?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:context="http://www.springframework.org/schema/context"xmlns:mvc="http://www.springframework.org/schema/mvc"xsi:schemaLocation="http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/contexthttp://www.springframework.org/schema/context/spring-context.xsdhttp://www.springframework.org/schema/mvchttp://www.springframework.org/schema/mvc/spring-mvc.xsd"><!-- 配置springMVC --><!-- 1、开启SpringMVC注解模式 --><!-- 简化配置:(1)自动注册DefaultAnnotationHandlerMappring,AnnotationMethodhandlerAdapter(2)提供一系列:数据绑定,数字和日期的format(3)xml,json 默认读写支持--><mvc:annotation-driven/><!-- servlet-mappring 映射路径:"/" --><!-- 静态资源默认servlet配置1:加入对静态资源的处理 、js、image2:允许使用"/"做整体映射--><mvc:resources mapping="/resources/**" location="/resources/"/><mvc:default-servlet-handler/><!-- 视图解析器\配置jsp,显示ViewResolver --><bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"><property name="viewClass" value="org.springframework.web.servlet.view.JstlView"/><property name="prefix" value="/WEB-INF/html/"/><property name="suffix" value=".html"/></bean><!-- 文件上传解析器 --><bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"><property name="defaultEncoding" value="utf-8"></property><!-- 1024*1024*20 20M --><property name="maxUploadSize" value="20971520"></property><property name="maxInMemorySize" value="20971520"></property></bean><!-- 扫描web相关的bean --><context:component-scan base-package="com.hacker.o2o.web"/></beans>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。