반응형 autowiring1 [Spring]Autowiring - Autowiring 이란 Spirng container가 bean 간의 참조관계를 자동으로 연결해주는 기능- 속성값 1. no : 기본값 2. byName : property 명과 동일한 id 또는 name을 가진 bean 3. byType : 동일한 클래스타입,(같은 타입 여러개 존재시 exception 발생) 4. constructor : byType과 비슷하나 생성자인자에 적용 5. autodetect : constructor 모드 수행후 byType 모드 수행 6. default : 최상위 태그인 에 셋팅한 모드가 수행됨. (default-autowire 속성) Setter Injection 사용시 Autowire 사용시 특정 bean을 autowiring 제외시키려면 2012. 5. 3. 이전 1 다음 728x90 반응형