프록시 패턴 프록시 패턴이 어떻게 사용되는지 알아보겠다. 아래는 전체 테스트 코드이다. public class ConfigurationTest { @Test void configuration() { Common common = new Common(); Assertions.assertThat(common).isSameAs(common); AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(); ac.register(MyConfig.class); ac.refresh(); Bean1 bean1 = ac.getBean(Bean1.class); Bean2 bean2 = ac.getBean(Bean2.class); Assert..