首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

由spring配置引起的属性保持有关问题

2013-03-28 
由spring配置引起的属性保持问题?参考地址?http://blog.csdn.net/peng658890/article/details/7233718?ps.

由spring配置引起的属性保持问题

?

参考地址?http://blog.csdn.net/peng658890/article/details/7233718

?

ps. spring的scope

5 types of bean scopes supported :

  1. singleton – Return a single bean instance per Spring IoC container
  2. prototype – Return a new bean instance each time when requested
  3. request – Return a single bean instance per HTTP request. *
  4. session – Return a single bean instance per HTTP session. *
  5. globalSession – Return a single bean instance per global HTTP session. *

In most cases, you may only deal with the Spring’s core scope – singleton and prototype, and the default scope is singleton.

P.S * means only valid in the context of a web-aware Spring ApplicationContext

?from?http://www.mkyong.com/spring/spring-bean-scopes-examples/

热点排行