Spring throws the error: Bean definition is abstract

前端 未结 3 1509
醉酒成梦
醉酒成梦 2021-01-19 14:42

I need some help with next topic.

I have a hierarchy of beans, just like that:



        
3条回答
  •  不思量自难忘°
    2021-01-19 15:13

    There is no different between abstract class and abstract beans.When you use beans and refer to another bean which is abstract , it means you want to instantiate an abstract class it and it can not work surely ! Be careful when you are using an abstract class ! An abstract class is used for template class and you can just extend it !

提交回复
热议问题