Aspect

· Spring
[Spring] Spring AOP 구현해보기 (@Aspect, @Pointcut, @Around) 이전 글 [Spring] Spring AOP AOP AOP : Aspect Oriented Programming의 약자로, 여러 객체에 공통으로 적용할 수 있는 기능을 분리해서 재사용성을 높여주는 프로그래밍 기법입니다. AOP는 핵심 기능과 공통 기능 muscleking3426.tistory.com 프록시 생성 방식 package config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context...
· Spring
이전 글 [Spring] Spring AOP AOP AOP : Aspect Oriented Programming의 약자로, 여러 객체에 공통으로 적용할 수 있는 기능을 분리해서 재사용성을 높여주는 프로그래밍 기법입니다. AOP는 핵심 기능과 공통 기능의 구현을 분리함으로 muscleking3426.tistory.com 스프링 AOP 구현 스프링 AOP를 이용해서 공통 기능을 구현하고 적용하는 방법은 단순합니다. - Aspect로 사용할 클래스에 @Aspect를 붙인다. - @Pointcut으로 공통 기능을 적용할 Pointcut을 정의한다. - 공통 기능을 구현한 메서드에 @Around를 적용한다. @Aspect, @Pointcut, @Around를 이용한 AOP 구현 개발자는 공통 기능을 제공하는 As..
runnnerDevHong
'Aspect' 태그의 글 목록