« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 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 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
戒除浮躁,读好书,交益友 |
Blog信息 |
blog名称:邢红瑞的blog 日志总数:523 评论数量:1142 留言数量:0 访问次数:9696656 建立时间:2004年12月20日 |

| |
[java语言]深入浅出 spring AOP (终结) 原创空间, 软件技术
邢红瑞 发表于 2006/2/13 19:00:19 |
这是研究aspectj后的第一篇blog,spring中最为强大的IntroductionInterceptor还没有介绍,但是aop不是interceptor,随着Adrian Colyer加盟interface21,spring 2.0对aspectj的支持大大加强,中国人自己做的开源项目springside(http://www.springside.org.cn/),也使用了spring 2.0。这就是深入浅出 spring AOP最后一篇了。spring+hibernate的应用,如何察看hibernate的session的打开,关闭,有多少连接连到数据库,熟悉spring的 transaction interceptor非常简单,使用log4j,log4j.logger.org.springframework.transaction.interceptor=DEBUG一切就OK了,还可以查看事务提交的信息。 |
|
回复:深入浅出 spring AOP (终结) 原创空间, 软件技术
ku788(游客)发表评论于2006/12/13 14:04:49 |
|
回复:深入浅出 spring AOP (终结) 原创空间, 软件技术
operate(游客)发表评论于2006/3/29 18:11:43 |
|
问个问题 原创空间, 软件技术
BU(游客)发表评论于2006/2/20 13:58:01 |
<bean id="securityInterceptor" class="com.SecurityInterceptor"/>
<bean id="secAdvisor"
class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
<property name="advice">
<ref local="securityInterceptor"/>
</property>
<property name="mappedNames">
<list>
<value>*</value>
</list>
</property>
</bean>
<bean
id="serviceWithSecurityProxy"
class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
<property name="interceptorNames">
<list>
<value>secAdvisor</value>
</list>
</property>
<property name="beanNames">
<list>
<value>remoteService</value>
</list>
</property>
</bean>
<bean id="remoteService"
class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
<property name="serviceUrl"
value="rmi://${rmi.host}:${rmi.port}/BKService"/>
<property name="serviceInterface" value="com.service.IService"/>
</bean>
上面这个aop自动代理怎么就无法生效呢?
|
|
» 1 »
|