从spring容器中获取对象scope为单例、多例

1.案例

1.1spring配置文件

在这里插入图片描述

1.2 测试类

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_39773004/article/details/108859404