[์คํ๋ง ํต์ฌ ์๋ฆฌ - ๊ธฐ๋ณธํธ] - 11. ์ปจํ
์ด๋์์ ๋น ์กฐํํ๊ธฐ
ยท
Spring/Spring ๊ธฐ๋ณธ
์ปจํ
์ด๋์ ๋ฑ๋ก๋ ๋ชจ๋ ๋น ์กฐํ ์คํ๋ง ์ปจํ
์ด๋์ ์ค์ ์คํ๋ง ๋น๋ค์ด ์ ๋ฑ๋ก ๋์๋์ง ํ์ธํด๋ณด์. ์ปจํ
์ด๋ ์์ฑ public class ApplicationContextInfoTest { AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(AppConfig.class); ApplicationContext ๋ฅผ ์คํ๋ง ์ปจํ
์ด๋๋ผ ํ๋ค. AppConfig.class ๋ฅผ ๊ตฌ์ฑ ์ ๋ณด๋ก ์ง์ ํ๋ค. ๋ชจ๋ ๋น ์ถ๋ ฅํ๊ธฐ @Test @DisplayName("๋ชจ๋ ๋น ์ถ๋ ฅํ๊ธฐ") void findAllBean() { String[] beanDefinitionNames = ac.getBeanDefinitionNames(); for (S..