1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?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:tx="http://www.springframework.org/schema/tx"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-2.5.xsd
- http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
- http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
- <context:component-scan base-package = "oa.controller" >
- <context:exclude-filter type = "annotation"
- expression = "org.springframework.stereotype.Service" />
- </context:component-scan >
-
- <bean class="org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter">
- <property name="messageConverters">
- <list>
- <ref bean="jsonHttpMessageConverter" />
- </list>
- </property>
- </bean>
-
- <bean id="jsonHttpMessageConverter" class="org.springframework.http.converter.json.MappingJacksonHttpMessageConverter">
- <property name="supportedMediaTypes">
- <list>
- <value>application/json;charset=UTF-8</value>
- </list>
- </property>
- </bean>
-
- <bean id="loginAspectBean" class="com.filter.LoginInterceptor" />
- <aop:config>
- <aop:aspect id="loginAspect" ref="loginAspectBean">
- <aop:pointcut id="businessService"
- expression="execution(* (oa.controller.BaseAction+).*_login(..))" />
- <aop:before pointcut-ref="businessService" method="doBefore"/>
- </aop:aspect>
- </aop:config>
-
- </beans>
|