java/AOP1 Spring AOP 구현 AOP란? AOP는 Aspect Oriented Programming의 약자로, 여러 객체에 공통으로 적용할 수 있는 기능을 분리해서 재새용성을 높여주 는 프로그래밍이다. Spring에서는 주로 Logging, Caching, Auditing, Performace monitoring등에 주로 사용되며, 런타임 시에 프록시 객체를 생성하여 공통 기능을 삽입하는 방식으로 동작한다. Spring AOP 구현하기 1. Application 혹은 Config파일에 @EnableAspectJAutoProxy 어노테이션 추가하기 @EnableAspectJAutoProxy @SpringBootApplication public class LogPracApplication { public static void main(S.. 2023. 3. 29. 이전 1 다음