Spring中的@scope註解

默認是單例模式,即scope="singleton"。另外scope還有prototype、request、session、global session做用域。scope="prototype"多例html @scope默認是單例模式(singleton)java 若是須要設置的話@scope("prototype")web 1.singleton單例模式,spring   全局有且僅有一個實例s
相關文章
相關標籤/搜索