강의

멘토링

커뮤니티

Inflearn Community Q&A

omg's profile image
omg

asked

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

classpathxmlapplicationcontext랑 genericxmlapplicationcontext의 차이점 질문

Resolved

Written on

·

309

0

강의에서는 컨테이너(?)를 classpath...로 사용하였는데

generic으로 쓰기도 하는 것 같더라구요 혹시 두 개의 차이점을 간단하게나마 알 수 있을까요??

javaspring

Answer 1

1

nury님의 프로필 이미지
nury
Instructor

스프링은 컨테너를 갱신할 수 있는데 Generic의 경우 refresh시 생성된 빈을 모두 소멸시키고 새로 만듭니다. refresh 하지 않는 이상 차이가 없다고 보시면 됩니 . 

omg's profile image
omg

asked

Ask a question