2.5(作用域的种类)、(singleton作用域)、(prototype作用域)

1:作用域的种类(Spring容器默认的作用域为singleton)

 

 【注】其中前两种最为常用

2:singleton作用域【该域是Spring容器默认的作用域】

 3:prototype(原型)作用域

扫描二维码关注公众号,回复: 9394500 查看本文章

 

猜你喜欢

转载自www.cnblogs.com/jiafeng1996/p/12360849.html