|
|
@@ -1,18 +1,16 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
- xmlns:task="http://www.springframework.org/schema/task" xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
|
- 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"
|
|
|
- xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
|
+ xmlns:mvc="http://www.springframework.org/schema/mvc"
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xmlns:context="http://www.springframework.org/schema/context"
|
|
|
+ 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-4.0.xsd
|
|
|
- http://www.springframework.org/schema/task
|
|
|
- http://www.springframework.org/schema/task/spring-task-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/websocket
|
|
|
- http://www.springframework.org/schema/websocket/spring-websocket.xsd">
|
|
|
+ http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd">
|
|
|
|
|
|
<!-- Scan controller -->
|
|
|
|
|
|
@@ -118,8 +116,8 @@
|
|
|
<bean id="multipartResolver"
|
|
|
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
|
|
|
<property name="defaultEncoding" value="UTF-8" />
|
|
|
- <!-- 不限制图片上传大小 -1 不限制 20971520-->
|
|
|
- <property name="maxUploadSize" value="20971520" />
|
|
|
+ <!-- 不限制图片上传大小 -1 不限制 20971520 20M-->
|
|
|
+ <property name="maxUploadSize" value="-1" />
|
|
|
</bean>
|
|
|
|
|
|
<bean
|