Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. package com.pig.spring.springaop.springaop.aspect;
  2.  
  3. import org.aspectj.lang.annotation.Aspect;
  4. import org.aspectj.lang.annotation.Before;
  5. import org.slf4j.Logger;
  6. import org.slf4j.LoggerFactory;
  7. import org.springframework.context.annotation.Configuration;
  8.  
  9. @Aspect
  10. @Configuration
  11. public class BeforeAspect {
  12.  
  13. private Logger logger = LoggerFactory.getLogger(this.getClass());
  14.  
  15. @Before("execution(* com.pig.spring.springaop.springaop.business.*.*(..))")
  16. public void before() {
  17. logger.info(" Intercepted Method Calls");
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement