Spring ApplicationContext

in #kr7 years ago

1.JPG

Application Context 만들때 AnnotationConfigApplicationContext방식을 활용해야 한다.
Application Context 예제
위의 그림을 설명 하면

  1. Client 가 Application Context에 UserDao를 요청
  2. Application Context에 UserDao 메소드가 있으면 등록된 DaoFactory에 생성 요청을 한다
  3. DaoFactory에서 UserDao 생성된 객체를 Client가 사용하게 된다.

부연 설명
Bean - 스프링에서 생성과 관계설정(제어)을 담당하는 방법,객체이다.
DaoFactory - Bean을 만들어 내는 저장소이다.
Application Context - DaoFactory ( BeanFactory) 에 Spring 기능을 확장한 것이다.
@Configuration - 설정정보 = Metadata
Spring Container - Apllication Context, DaoFactory(BeanFactory), Spring의 기능을 담고 있는 것

Sort:  

Congratulations @deathnote9! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

The Steem community has lost an epic member! Farewell @woflhart!
SteemitBoard - Witness Update
Do not miss the coming Rocky Mountain Steem Meetup and get a new community badge!
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.19
TRX 0.13
JST 0.029
BTC 60897.42
ETH 3369.90
USDT 1.00
SBD 2.51