Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Architecture & Framework » Spring Framework  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Spring切入点表达式的问题
cxp108





发贴: 363
积分: 12
于 2009-11-17 09:50 user profilesend a private message to usersend email to cxp108search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在Spring切入点如何在xml配置中表达一个组合的关系

例如 : com.some.service 下的所有类的所有函数,但是不包含com.some.service.notagent 下的所有类的所有函数。

我尝试
execution(* com.some.service..*.*(..)) and ( not execution(* com.some.service.notagent..*.*(..)))

以及其他类似使用AND 和NOT的组合皆失败了,不知大家有没有类似的应用经验?
有类似的应用经验的兄弟能否介绍一下?
PS:我知道有很多方法可以绕过这个问题,只是希望用这种方式来解决。



作者 Re:Spring切入点表达式的问题 [Re:cxp108]
cxp108





发贴: 363
积分: 12
于 2009-11-17 10:06 user profilesend a private message to usersend email to cxp108search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
补充一点,我的Spring版本是2.5。


作者 Re:Spring切入点表达式的问题 [Re:cxp108]
dhxyu





发贴: 3
积分: 0
于 2009-11-17 12:58 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
没人在了。。。


作者 Re:Spring切入点表达式的问题 [Re:cxp108]
cxp108





发贴: 363
积分: 12
于 2009-11-17 14:50 user profilesend a private message to usersend email to cxp108search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
郁闷啊....人都到哪去了....
floater显灵一下吧!



作者 Re:Spring切入点表达式的问题 [Re:cxp108]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2009-12-31 22:53 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sorry I didn't come recently, it's holiday season, Smile.

done with private emails.



"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923