AOP를 통해 Custom Annotation 처리하기
2020. 4. 15.
들어가며 개발시 프레임워크를 사용하다보면 제공되는 수 많은 Annotation들이 자주보일 것이다. EX) @Cacheable, @Controller, @Data 등 제공 되고있는 Annotation이 아닌 필요한 Annotation을 직접 커스텀 하여 선언, 사용할 수 있다. Annotation 작성과 선언된 Annotation을 처리하는 AOP에 대한 간단한 내용을 포스팅하고자 한다. (Annotation을 처리하는 방법은 AOP외에도 여러방법이 존재한다.) Custom Annotation @Inherited @Retention(value = RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Custom { String fi..