spring中scope做用域(转)

今天研究了一下scope的做用域。默认是单例模式,即scope="singleton"。另外scope还有prototype、request、session、global session做用域。scope="prototype"多例。再配置bean的做用域时,它的头文件形式以下: 如何使用spring的做用域: <bean id="role" class="spring.chapter2.mary
相关文章
相关标签/搜索