seatao-manage-servlet.xml
2015-11-05 22:59
302 查看
<?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.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.xsd">
<!-- 定义注解驱动 -->
<mvc:annotation-driven >
<mvc:message-converters>
<bean class="com.seatao.common.spring.exetend.converter.json.CallbackMappingJackson2HttpMessageConverter">
<!-- 指定回调函数的请求名 -->
<property name="callbackName" value="callback"/>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
<!-- 定义Controller的扫描包 -->
<context:component-scan base-package="com.seatao.manage.controller" />
<!-- Example: prefix="/WEB-INF/jsp/", suffix=".jsp", viewname="test" ->
"/WEB-INF/jsp/test.jsp" -->
<!-- 定义视图解析器,内部资源视图解析器 -->
<bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/views/" />
<property name="suffix" value=".jsp" />
<!-- 指定视图解析器的顺序 -->
<property name="order" value="1" />
</bean>
<!-- 定义文件上传解析器 -->
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- 设定默认编码 -->
<property name="defaultEncoding" value="UTF-8"></property>
<!-- 设定文件上传的最大值5MB,5*1024*1024 -->
<property name="maxUploadSize" value="5242880"></property>
</bean>
</beans>
<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.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.xsd">
<!-- 定义注解驱动 -->
<mvc:annotation-driven >
<mvc:message-converters>
<bean class="com.seatao.common.spring.exetend.converter.json.CallbackMappingJackson2HttpMessageConverter">
<!-- 指定回调函数的请求名 -->
<property name="callbackName" value="callback"/>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
<!-- 定义Controller的扫描包 -->
<context:component-scan base-package="com.seatao.manage.controller" />
<!-- Example: prefix="/WEB-INF/jsp/", suffix=".jsp", viewname="test" ->
"/WEB-INF/jsp/test.jsp" -->
<!-- 定义视图解析器,内部资源视图解析器 -->
<bean
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/views/" />
<property name="suffix" value=".jsp" />
<!-- 指定视图解析器的顺序 -->
<property name="order" value="1" />
</bean>
<!-- 定义文件上传解析器 -->
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- 设定默认编码 -->
<property name="defaultEncoding" value="UTF-8"></property>
<!-- 设定文件上传的最大值5MB,5*1024*1024 -->
<property name="maxUploadSize" value="5242880"></property>
</bean>
</beans>
相关文章推荐
- Xcode6工程重命名
- opencv3 计算反向投影-鼠标事件
- swift2.0 - study
- [LeetCode]Search for a Range
- Python基础(list类)
- 一起talk C栗子吧(第五十八回:C语言实例--获取程序当前的工作路径)
- 第二百一十七天 how can I 坚持
- 苹果开发 笔记(88)UIWebView
- HDU 4500 模拟
- redis 学习笔记(1)-编译、启动、停止
- 1020. Tree Traversals (25)
- AJAX 跨域请求 - JSONP获取JSON数据
- 11.5工作日志
- iframe高度自适应内容
- 1020. Tree Traversals (25)
- 【本/硕毕业生】开题报告及论文指导思路和撰写事项的整理
- opencv3 计算反向投影-calcBackProject函数-滚动条
- linux c/c++ 后台开发常用算法之:md5算法c++版实现
- jQuery JSONP 跨域实践
- JavaScript 之 HTML DOM快速入门