___|  _ \   |  |    |   |_ _|\ \     / ____|
 |     |   |  |  |    |   |  |  \ \   /  __|
 |   | |   | ___ __|  ___ |  |   \ \ /   |
\____|\___/     _|   _|  _|___|   \_/   _____| 

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Spring ApplicationContext

BY: @deathnote9 | CREATED: July 3, 2017, 12:46 a.m. | VOTES: 4 | PAYOUT: $3.02 | [ VOTE ]

[IMAGE: https://steemitimages.com/DQmNPJTNzn2X8ZrKd6mqAY2wibRhJLabNGZ5deDxS8zu54f/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의 기능을 담고 있는 것

TAGS: [ #kr ] [ #newbi ] [ #kr-dev ] [ #developer ] [ #spring-framework ]

Replies

@steemitboard | June 23, 2019, 1:56 a.m. | Votes: 0 | [ VOTE ]

Congratulations @deathnote9! You received a personal award!

https://steemitimages.com/70x70/http://steemitboard.com/@deathnote9/birthday2.pngHappy 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 UpdateDo 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!
[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>