Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.pig.spring.springaop.springaop.aspect;
- import org.aspectj.lang.annotation.Aspect;
- import org.aspectj.lang.annotation.Before;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.springframework.context.annotation.Configuration;
- @Aspect
- @Configuration
- public class BeforeAspect {
- private Logger logger = LoggerFactory.getLogger(this.getClass());
- @Before("execution(* com.pig.spring.springaop.springaop.business.*.*(..))")
- public void before() {
- logger.info(" Intercepted Method Calls");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement