반응형 바이트코드조작라이브러리1 [Spring Boot] : @Configuration과 바이트코드 조작 @Configuration과 바이트코드 조작 [Spring Boot] : @Configuration과 바이트코드 조작 @Test void configurationDeep() { AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class); AppConfig bean = ac.getBean(AppConfig.class); System.out.println("been = " + bean.getClass()); } AnnotationConfigApplicationContext에서 파라미터로 넘긴 값은 스프링 빈으로 등록이 되기 때문에 AppConfig도 스프링 빈이 된다. AppConfig 빈을 조회.. 2022. 1. 9. 이전 1 다음 반응형