English 中文(简体)
我需要普切斯·阿普切斯·阿普切特指出,这与这一点相称。
原标题:I need Spring AOP pointcut annotation that matches this
  • 时间:2011-07-07 12:44:31
  •  标签:
  • spring
  • aop

任何公共方法、任何回归类型、部分类别名称配对、任何方法,都把会议作为第一动力。

我来这里的是@Before(数值=“execution(公开 *SERImpl.*(*.PlayerSession,)”)

这并不奏效。 但是,当我改名为@Before(价值=“execution(公共 * com.mycompany.mypkg.IdserviceImpl.*(*.PlayerSession,.)”时,该编码是发挥作用的。 我可以对此作出解释。

问题回答

相反地利用:

@Before(value = "execution(public * *..*ServiceImpl.*(*..PlayerSession, ..))")

页: 1

注:只是为了方便 我在您的演员面前也补充了这一句。





相关问题
array dependency injection in spring?

is there a way to use dependency injection to inject all available implementations of a specific interface in spring? This is kind of the same thing as asked here for .NET. Though my aim is to use @...

Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Grails Packaging and Naming Conventions

Packaging Controllers, Services,etc. i.e. - com.company.controllers - com.company.services Is this a good practice or should be avoided by all means?? Another worth mentioning problem I encountered ...

How can I determine Objects in application context?

I am trying to write a portlet for Liferay (using Tomcat and Spring) and need to use a database via Persistence API/Hibernate. I am using some configuration XMLs (applicationContext.xml, etc.) and ...

How to prevent JPA from rolling back transaction?

Methods invoked: 1. Struts Action 2. Service class method (annotated by @Transactional) 3. Xfire webservice call Everything including struts (DelegatingActionProxy) and transactions is configured ...