I wrote pointcut like this for the target method aaa. I want to enroll whole parameters of target method to the advice method's parameters. Could you let me know how can I make it.
- target method
fun aaa(
@RequestParam(value = "startDate")
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) startDate: LocalDate,
@RequestParam(value = "endDate")
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE) endDate: LocalDate,
@ModelAttribute privateInfoRequestDTO: PrivateInfoRequestDTO,
request: HttpServletRequest
)
- advice method's pointcut
@Before("@annotation(com.blah.blah...) && args(privateInfoRequestDTO, startDate, endDate, request)")