AOP pointcut expression for any public method of a service
问题 What is the simplest pointcut expression that would intercept all public methods of all beans annotated with @Service ? For instance, I expect it to affect both public methods of this bean: @Service public MyServiceImpl implements MyService { public String doThis() {...} public int doThat() {...} protected int doThatHelper() {...} // not wrapped } 回答1: This documentation should be extremely helpful. I would do by creating two individual point cuts, one for all public methods, and one for all