TIL 2022 7월 5일 화요일

서현우·2022년 7월 5일
0

TIL&WIL

목록 보기
124/169

스프링의 정석

ch3-1 ~ ch3-4

  • Spring DI(의존성 주입) 흉내내기 1 ~ 3, 실습
  • @Component - component-scan으로 bean으로 등록
  • @Autowired, @Resource - bean으로 등록한 것을 주입
  • config.xml - bean 등록, bean으로 초기화(setter, 생성자 이용)

ch3-5 ~ ch3-8

  • Spring DI 활용하기 - 1 ~ 4
  • bean - Spring container
  • AppicationContext(AC) - Root AC, Servlet AC(부모-자식 관계)
  • Root AC - root-context.xml, Servlet AC - servlet-context.xml
  • 톰캣 실행 시 log로 Root AC, Servlet AC 확인 - 오류 발생시 단서
  • IoC - 제어의 역전, DI - 의존성 주입 => 디자인패턴 중 전략패턴
  • @Autowired, @Resource - bean을 자동 주입
  • @Component, @Controller, @Service, @Repository, @ControllerAdvice - bean으로 자동 등록
  • @Value - 기본형, String iv에 변수 값을 주입
  • @PropertySource - @Value와 함께 사용해서, 시스템 환경변수, 시스템 프로퍼티 값을 주입

자바의 정석 3판

11장 컬렉션 프레임웍

  • 요약 해놓은 것 훑어보기
profile
안녕하세요!!

0개의 댓글