본문 바로가기 메뉴 바로가기

Data Makes Our Future

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Data Makes Our Future

검색하기 폼
  • 분류 전체보기 (749)
    • Data (18)
      • Statistics (10)
      • Analysis (8)
    • SQL (24)
      • Organize (3)
      • Install (2)
    • R (58)
      • Collection (4)
      • Process (33)
      • Analysis (11)
      • Visualize (4)
      • Install (3)
    • Python (56)
      • Collection (10)
      • Process (27)
      • Visualize (2)
      • Install (3)
    • Web (167)
      • API (16)
      • Spring (58)
      • JAVA (49)
      • Infra (14)
    • PS (366)
      • Algorithm (45)
      • Problem_Solving (311)
      • PS_Note (7)
    • Books (35)
    • ADsP (4)
    • eTc (17)
    • AI (4)
  • 방명록

component (1)
[Spring] Spring-IoC, Bean, DI

Spring IoC 제어권이 역전된 것 !? IoC : Inversion of Control 일반적으로는 자신이 사용할 의존성을 자신이 만들어서 사용 class OwnerController { private OwnerRepository repository = new OwnerRepository(); } Spring IoC란, 자신이 사용할 의존성을 누군가 만들어 주는 것. 이것이 제어권의 역전 class OwnerController { private OwnerRepository repo; // OwnerRepository를 사용하지만 자신이 만들지 않음 // OwnerController 밖에서 누군가가 의존성을 줄 수 있도록 생성자를 통해 의존성을 받아옴 // (=제어권 역전) public OwnerCo..

Web/Spring 2019. 9. 21. 11:41
이전 1 다음
이전 다음
최근에 올라온 글
최근에 달린 댓글
링크
  • Gitbook
  • resume
Total
Today
Yesterday
TAG
  • 시뮬레이션
  • PYTHON
  • spring
  • DATA
  • C
  • dp
  • DFS
  • java
  • c++
  • BOJ
  • 백준
  • coding
  • Algorithm
  • R
  • BFS
more

Blog is powered by Tistory / Designed by Tistory

티스토리툴바