spring 的 scope

参考解答

通过<bean scope="singleton|prototype"> 来控制bean的单例还是多例,singleton表示bean是单例的,prototype表示bean是多例的


results matching ""

    No results matching ""