Google News
logo
Java Springs - Interview Questions
Which parameter patterns are used in Spring AOP
The open param, close param () is a parameter pattern which matches on a method with no arguments.

@Before("execution(* addCustomer())")​
 
The open param star, close param (*) is another pattern that matches a method with one argument of any type.
 
@Before("execution( * addCustomer(com.FreeTimeLearn.app.model.Customer))")
 
Finally, we have the open param dot dot, close param (..) which matches on a method with zero to many arguments of any type.
 
@Before("execution(* addCustomer(..))")
 
Advertisement