강의

멘토링

커뮤니티

Inflearn Community Q&A

wingzard2677's profile image
wingzard2677

asked

Yoon Jae-seong's introductory course through hands-on experience for Spring Framework developers

Lecture 7 IoC Container

7강 loc컨테이너 질뮨이용..

Written on

·

281

0

ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("config/beans.xml");// 별도 설정하지 않으면 빈객체를 자동생성한다고 하셧는데

왜 자동생성이되면서 생성자가 호출되는건가여? 원래 생성되면서 생성자가 호출되는건가여?

springjava

Answer 1

0

softcampus님의 프로필 이미지
softcampus
Instructor

생성자는 객체가 생성되면서 호출되는 요소입니다. 빈 객체들이 자동으로 생성되기 때문에 생성자가 호출됩니다.

wingzard2677's profile image
wingzard2677

asked

Ask a question