• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

생성자를통한멤버변수

스프링(3번째)

.xml 파일을 문자열로 해서 변수config 에 저장합니다. GenericXmlApplicationContext(config) 로 설정파일을 읽어오게 합니다. 객체 ctx는 .xml 에 객체를 생성하게 합니다. ctx.getBean 으로 참조할 객체 와 클래스를 불러옵니다. 첫번째 getStudentInfo 는 student1 의 객체를 참조 했습니다. 두번째 getStudentInfo 는...

constructor-arg생성자를통한멤버변수constructor-arg

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more