且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以在不使用ApplicationContextAware的情况下检索具有原型范围的Spring bean

更新时间:2022-02-03 00:29:16

Spring有一些相当成熟的方法来实现您的追求...

Spring has some fairly sophosticated methods for achieving what you're after...

请参见spring文档: http://static.springsource。 org / spring / docs / 3.1.x / spring-framework-reference / html / beans.html#beans-factory-scopes-other-injection

See the spring documentation: http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/beans.html#beans-factory-scopes-other-injection

在Google上搜索Spring代理范围也引发了一些结果...

Searching for spring proxy scope on google also threw up some results...