-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathssm4-springmvc_xml.template
25 lines (22 loc) · 1.43 KB
/
ssm4-springmvc_xml.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<!-- @Created with Atom -->
<!-- @author @author@ -->
<!-- @time @now@ -->
<!-- @description -->
<!-- classpath:ssm4/springmvc.xml -->
<!-- 前后端分离 -->
<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" xmlns:aop="http://www.springframework.org/schema/aop"
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 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd">
<!--扫描控制器-->
<context:component-scan base-package="com.sd.packagename.web" />
<!--注解生效-->
<mvc:annotation-driven />
<!--放行静态资源-->
<mvc:default-servlet-handler />
<aop:aspectj-autoproxy />
<bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<property name="defaultEncoding" value="UTF-8" />
<property name="maxUploadSize" value="#{100*1024*1024}" />
<property name="maxInMemorySize" value="#{10*1024*1024}" />
</bean>
</beans>