> For the complete documentation index, see [llms.txt](https://wannaqueen.gitbook.io/spring5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wannaqueen.gitbook.io/spring5/spring-5.0/6-spring-aop-api/6.4-proxyfactorybean-aop.md).

# 6.4 ProxyFactoryBean을 사용해서 AOP 프록시 생성 by ks

비즈니스 객체에 Spring IoC 컨테이너 ( `ApplicationContext`또는 `BeanFactory`)를 사용한다면 Spring의 AOP `FactoryBean`구현 중 하나를 사용하고 싶을 것이다 . (factory bean은 다른 유형의 객체를 만들 수 있도록 간접적 인 계층을 도입한다는 것을 기억하십시오.)

> Spring AOP 지원은 또한 커버 factory bean을 사용한다.

**Spring에서 AOP 프록시를 생성하는 기본적인 방법 사용하는 `org.springframework.aop.framework.ProxyFactoryBean`것**이다. 이것은 포인트컷, 적용되는 advice 및 순서를 완벽하게 제어합니다. 그러나 이러한 제어가 필요하지 않은 경우 더 간단한 옵션이 더 좋습니다.
