Spring in Action 3 - pointcut

来源:互联网 发布:网络吞吐率 编辑:程序博客网 时间:2024/06/06 01:36

we used the && operator to combine the execution() and within() designators in an “and” relationship

we could’ve used the || operator to indicate an “or” relationship

the ! operator can be used to negate the effect of a designator

Spring 2.5 introduced a new bean() designator that lets you identify beans by their ID within a pointcut expression.

ex.execution(*com.springinaction.springidol.Instrument.play()) and bean(eddie)


原创粉丝点击