关于org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.List]:Specified class is an interface
时间:2019-01-02 14:19:12
收藏:0
阅读:1805
报错原因:
spring在注入的时候不允许注入一个List类型的对象,才会导致报上诉错误;
解决办法:
①:改变为数组方式去接收;(我没用)
②:再把这个“List<WorkFinalStatmentVo> statmentVoList” 封装成一个对象------->StatmentVoList statmentVoList,生成get,set方法,将对象注入;
③:。。。或许还有其他的办法解决,有的话请大神赐教!
原文:https://www.cnblogs.com/yikuan-919/p/10208189.html
评论(0)