关于org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.List]:Specified class is an interface

报错原因:

  spring在注入的时候不允许注入一个List类型的对象,才会导致报上诉错误;

解决办法:

  ①:改变为数组方式去接收;(我没用)

  ②:再把这个“List<WorkFinalStatmentVo> statmentVoList” 封装成一个对象------->StatmentVoList  statmentVoList,生成get,set方法,将对象注入;

  ③:。。。或许还有其他的办法解决,有的话请大神赐教! 

 

相关文章:

  • 2022-12-23
  • 2022-01-15
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-01-11
  • 2021-07-30
猜你喜欢
  • 2022-01-19
  • 2022-01-26
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案