I need to do few things before any method on org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean getting called. Hence I’m using an expression
@Around("execution. (*org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.*(..)").
But I get an exception saying that
org.springframework.beans.factory.BeanCreationException: Error creating beanwithname 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at character position 80.
Could you please tell me what is that I’m doing wrong here ?
There needs to be a space character between the * and org.springframework.orm.jpa…
The beginning * is the wildcard for the return type of the method.