Spring AOP1 Spring AOP 사용법 egov-com-servlet.xml @Aspect public class TestAspect { @Pointcut("execution(public * phs.admin.*.web.*Controller.*(..))") private void targetMethod() {} @Before("targetMethod()") public void beforeTargetMethod(JoinPoint thisJoinPoint) throws Exception {// 반환타입 String 은 return ""; System.out.print("-------aspect---------"); } } 2022. 8. 26. 이전 1 다음