IllegalArgumentException: Pointcut is not well-formed: expecting '('

172 views Asked by At

What is wrong with my pointcut?

Caused by: java.lang.IllegalArgumentException:
  Pointcut is not well-formed:
  expecting '(' at character position 0
  ru.ssau.tk.Ildar.Sandbox.spring.aop.mypractice.aspects.PointCuts.forAddBook

My pointcut:

@Pointcut("execution(* ru.ssau.tk.Ildar.Sandbox.spring.aop.mypractice.Library.addBook())")
public void forAddBook() {}
0

There are 0 answers