1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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" xmlns:aop="http://www.springframework.org/schema/aop"
- xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
- <!-- 自动扫描且只扫描@Controller -->
- <context:component-scan base-package="com.jtgh.yjpt.controller"
- use-default-filters="false">
- <context:include-filter type="annotation"
- expression="org.springframework.stereotype.Controller" />
- </context:component-scan>
- <mvc:annotation-driven />
- <mvc:resources location="/modeler/" mapping="/modeler/**" />
- <!-- file upload -->
- <bean id="multipartResolver"
- class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
- <!-- set the max upload size100MB -->
- <property name="maxUploadSize" value="104857600"></property>
- <property name="maxInMemorySize" value="4096"></property>
- <property name="defaultEncoding" value="UTF-8"></property>
- </bean>
-
- <!--aop:aspectj-autoproxy/-->
- <!-- 日志记录 -->
- <!--aop:config>
- <aop:pointcut expression="execution(* com.jtgh.yjpt.controller..*.*(..))" id="logAspect"/>
- <aop:aspect ref="logAop">
- <aop:after-returning pointcut-ref="logAspect" method="doLogAfterReturn"/>
- <aop:after-throwing pointcut-ref="logAspect" method="doLogAfterThrow"/>
- </aop:aspect>
- </aop:config-->
- <!--bean id="logAop" class="com.jtgh.yjpt.common.LogAop"/-->
- </beans>
|