You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.5 KiB
40 lines
1.5 KiB
11 months ago
|
<?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/beans
|
||
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
||
|
http://www.springframework.org/schema/context
|
||
|
http://www.springframework.org/schema/context/spring-context.xsd
|
||
|
http://www.springframework.org/schema/mvc
|
||
|
http://www.springframework.org/schema/mvc/spring-mvc.xsd">
|
||
|
|
||
|
<!-- 自动装配 -->
|
||
|
<context:component-scan base-package="com.cya.controller" />
|
||
|
<!-- 启用spring mvc 注解 -->
|
||
|
<mvc:annotation-driven />
|
||
|
|
||
|
<!--视图解析器-->
|
||
|
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||
|
<!--前缀-->
|
||
|
<property name="prefix" value="/"/>
|
||
|
<!--后缀-->
|
||
|
<property name="suffix" value=".html"></property>
|
||
|
</bean>
|
||
|
|
||
|
<!-- 文件上传 -->
|
||
|
<bean id="multipartResolver"
|
||
|
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
||
|
<!-- 默认编码 -->
|
||
|
<property name="defaultEncoding" value="utf-8"/>
|
||
|
<!-- 文件大小最大值 -->
|
||
|
<property name="maxUploadSize" value="10485760000"/>
|
||
|
<!-- 内存中的最大值 -->
|
||
|
<property name="maxInMemorySize" value="40960"/>
|
||
|
</bean>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</beans>
|