참고)
https://velog.io/@sungmo738/Resource-Autowired-Inject-%EC%B0%A8%EC%9D%B4
@Resource, @Autowired, @Inject 차이
의존 객체 자동 주입(Automatic Dependency Injection)은 스프링 설정파일에서 혹은 태그로 의존 객체 대상을 명시하지 않아도 스프링 컨테이너가 자동적으로 의존 대상 객체를 찾아 해당 객체에 필요한
velog.io
Spring @Autowired, @Resource, @Inject의 어노테이션 차이
@Autowired, @Resource,@Inject은 모두 의존관계를 자동으로 연결해주는 기능을 가진 어노테이션이지만 조금씩 차이가 있다. @Resource @Autowired @Inject 설명 Java 에서 지원 Spring Framework 에서 지..
devmg.tistory.com
https://eboong.tistory.com/525
[스프링부트] @Autowired와 private final 차이점
책을 읽으며 따라하다 보니까 의문이 생겼습니다. 어떤 클래스에서는 @ Autowired를 쓰고, 또 어떤 클래스에서는 private final을 이용해서 의존성을 주입하고,, 둘의 차이가 궁금해졌습니다. 일단 스
eboong.tistory.com
'programming study > B-Spring' 카테고리의 다른 글
SOLID 원칙 적용 (0) | 2022.09.29 |
---|---|
spring-AOP (2) | 2022.09.20 |
spring-Dependency (0) | 2022.09.16 |
spring - 빈 등록 (@Component, @Bean, @Configuration) (0) | 2022.09.16 |
spring-싱글톤 (0) | 2022.09.14 |