Spring中的@scope注解

默认是单例模式,即scope="singleton"。另外scope还有prototype、request、session、global session做用域。scope="prototype"多例html @scope默认是单例模式(singleton)java 若是须要设置的话@scope("prototype")web 1.singleton单例模式,spring   全局有且仅有一个实例s
相关文章
相关标签/搜索