@Autowired @Resource @Inject

2020. 9. 2. 15:49·BackEnd
@Autowired //Support from Spring
private LoginService logoutService; //LoginService type linked.
@Autowired
private LogoutService loginService; //LogoutService type linked.

@Inject //Support from JAVA
private LoginService logoutService; //LoginService type linked.
@Inject
private LogoutService loginService; //LogoutService type linked.

@Resource
private LoginService logoutService; 
// LogoutService type linked but data type is LoginService. An Error Occurs.
@Resource
private LogoutService loginService; 
// LoginService type linked but data type is LogoutService. An Error Occurs.

.

'BackEnd' 카테고리의 다른 글

[Mybatis] resultMap collection을 이용한 중첩 데이터 출력하기  (2) 2025.02.04
Jenkins gradlew permission denied error  (0) 2022.04.01
Lombok을 이용한 Bulider Pattern  (0) 2021.08.19
Monolithic Architecture 그리고 MSA  (0) 2021.05.14
JAVA Map, List JQuery Implementation  (0) 2021.02.23
'BackEnd' 카테고리의 다른 글
  • Jenkins gradlew permission denied error
  • Lombok을 이용한 Bulider Pattern
  • Monolithic Architecture 그리고 MSA
  • JAVA Map, List JQuery Implementation
seowooJeong
seowooJeong
  • seowooJeong
    개발일기
    seowooJeong
  • 전체
    오늘
    어제
    • 분류 전체보기 (25)
      • FrontEnd (6)
      • BackEnd (6)
      • Project (6)
      • Algorithm (4)
        • JAVA (4)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • React
    • Spring
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    gitlab ci/cd
    mybatis list
    resultmap 중첩
    QueryDSL 오류
    jeknins 파이프라인
    jenkinsfile 설정
    숫자 거꾸로
    Java
    숫자 알고리즘
    Spring QueryDsl
    숫자 반전
    jQuery
    jenkins gitlab
    querydsl 환경설정
    build.gradle querydsl
    intellij querydsl
    resultmap 리스트
    collection 리스트
    spring msa cicd
    jenkinsfile
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
seowooJeong
@Autowired @Resource @Inject
상단으로

티스토리툴바