Spring Bean - annotation

HyL·2023년 4월 26일

Spring

목록 보기
2/2

사용할 생성자 위에 @Autowired 지정
setting.xml 파일에서 namespace에 context 추가

<context:annotation-config />

추가

@Qualifier("exam1") -> 클래스가 같은 bean의 id 탐색

0개의 댓글