SSAFY11th-book-study / book-study

0 stars 0 forks source link

[7.2.6] 상속에 따른 빈 #78

Open limjongheok opened 2 months ago

limjongheok commented 2 months ago

책 p.591에 따르면 BaseSqlService는 상속을 통해 확장해서 사용하기 적합하여 서브 클래스에서 필요한 경우 접근할 수 있도록 protected로 선언하다 라고 되어 있는데 만약 BaseSqlService 를 상속하는 서브클래스를 생성시 이 서브클래스도 꼭 bean으로 관리 해야하는지 궁금합니다?

gmelon commented 2 months ago

저도 궁금합니다?

gmelon commented 2 months ago

현재 BaseSqlService가 bean으로 관리되고 있는건가요? -> 그렇다고 합니다. ^^