Spring wiring by type is slower by magnitude than wiring by name

后端 未结 2 1797
误落风尘
误落风尘 2021-02-02 10:34

In my project, I am trying to migrate all usages of

Foo foo = (Foo) beanFactory.getBean(\"name\");

into

Foo foo = beanFactory.         


        
2条回答
  •  孤街浪徒
    2021-02-02 11:04

    This problem is now solved in Spring with the resolution of SPR-6870. See the resolution comments there for details. The fix is available as of versions 3.2.0.RELEASE and 3.1.2.

提交回复
热议问题