profile
백엔드 개발자
post-thumbnail

의존성 주입 Dependency Injection 2

Spring에서는 빌드할 때 Spring Container에 객체들을 올려서 관리하므로 Container에 올리는 방법을 알아두자.Spring Container에 객체를 등록하는 방법은 @Component 어노테이션을 이용하면 된다.@Component 어노테이션이 있는

2022년 4월 29일
·
0개의 댓글
·