首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

SSH中在Action顶用Spring的aop来验证用户是否已经登录的拦截器

2012-10-15 
SSH中在Action中用Spring的aop来验证用户是否已经登录的拦截器1.Spring的aop来验证用户是否已经登录的拦截

SSH中在Action中用Spring的aop来验证用户是否已经登录的拦截器

1.Spring的aop来验证用户是否已登录的拦截器

?

?2.相应的在Spring中的applicationContext.xml中的配置

<bean id="commentInter" class="angus.interceptor.CommentInterceptor"/>
??? <bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
???? <property name="beanNames">
??????????? <list>
??????????????? <value>/addComment</value>
??????????? </list>
???? </property>
??????? <property name="interceptorNames">
??????????? <list>
??????????????? <value>commentInter</value>
??????????? </list>
??????? </property>
??? </bean>

热点排行