67,538
社区成员
发帖
与我相关
我的任务
分享
<?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:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd ">
<bean name="/login" class="com.maesinfo.action.UserLevelAction">
<property name="userservice">
<ref bean="userservice" />
</property>
</bean>
<bean id="userservice"
class="com.maesinfo.service.UserServiceImpl">
<property name="userleveldao">
<ref bean="userleveldao" />
</property>
<property name="userdao">
<ref bean="userdao" />
</property>
</bean>
<bean id="userleveldao" class="com.maesinfo.dao.UserlevelDAO" />
<bean id="userdao" class="com.maesinfo.dao.UserDAO" />
<bean id="checkUser" class="com.maesinfo.util.CheckUserLevel" />
<aop:config>
<aop:aspect id="checkuser" ref="checkUser">
<aop:pointcut id="allcheckmothod" expression="exection(* com.maesinfo.service.check*(..))"/>
<aop:before method="checkLevel" pointcut-ref="allcheckmothod"/>
</aop:aspect>
</aop:config>
</beans>
<bean id="checkUser" class="com.maesinfo.util.CheckUserLevel" />
<aop:config>
<aop:aspect id="checkuser" ref="checkUser">
<aop:pointcut id="allcheckmothod" expression="exection(* com.maesinfo.service.check*(..))"/>
<aop:before method="checkLevel" pointcut-ref="allcheckmothod"/>
</aop:aspect>
</aop:config>