SpringFrameWork 에 관한 질문인데요.. 답변좀 부탁드립니다..
수예
SpringFrameWork 에서 autowire 에 대해서 공부하고 있습니다. SpringFrameWork 에 대한 기본지식이나 정보가 아직 이해가 안되네요.. 제가 지금 궁금한건.. SpringFrameWork 에서 autowire 가 있잖아요..
autowire 를 사용하기 전과 사용후에.. 그리고 autowire 의 옵션엔 no / byType / byName / constructor / autodetect 가 있습니다.
autore 에 byType 을 사용했을때 간단한 예제를 보면..
- autowire 적용전 bean id=sampleBiz class=sky.sample.business.SampleBizImpl
property name=sampleDao
ref bean=sampleDao/
/property
/bean- autowire 적용후
bean id=sampleBiz class=sky.sample.business.SampleBizImpl autowire=byType/
1.autowire 를 사용 하지 않는 경우
bean id=beanOne class=ExampleBean
prpperty name=manager /property
/bean
bean id=manager class=ManagerBean 2. autowire 를 사용 한 경우
bean id=beanOne class=ExampleBean autowire=byType/
bean id=manager class=ManagerBean 이렇게 되는데요.. 여기서 autowire를 byType 이란 옵션을 설정하면.. property 값을 byType 가 값을 지정했다는거만 생각이 나네요..설명좀 부탁드립니다.
그리구.. byName/constructor/ autodetect/ no/의 옵션을 autowire 를 사용하기전과 사용후에 어떻게 변하는지간단한 예제와 함께 설명좀 부탁드립니다..