문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
springframework:scope [2017/01/19 12:56] kwon37xi [prototype] |
springframework:scope [2018/09/17 17:55] kwon37xi [prototype] |
||
---|---|---|---|
줄 2: | 줄 2: | ||
===== prototype ===== | ===== prototype ===== | ||
* 매번 객체 새로 생성할 필요가 있을 경우 사용한다. | * 매번 객체 새로 생성할 필요가 있을 경우 사용한다. | ||
- | * [[http:// | + | * [[http:// |
+ | * [[http:// | ||
==== 구현방법 Provider< | ==== 구현방법 Provider< | ||
- | ... | + | <code java> |
+ | @Autowired | ||
+ | private Provider< | ||
+ | ... | ||
+ | PrototypeBeanClass bean = prototypeBeanClassProvider.get(); | ||
+ | ... | ||
+ | </ | ||
===== request/ | ===== request/ | ||
* 웹 Request/ | * 웹 Request/ |