首页 > 技术文章 > Error creating bean with name xxxx,xxxx must be provided

shaun-sheng 2018-07-20 12:03 原文

原因:    继承父类的bean注入是set,get方法

问题:    自己的controller不能创建,因为需要的bean没有创建

解决方法:  bean 注入,通过构造函数调用父类的set方法

 

 

推荐阅读