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

报错原因: spring在注入的时候不允许注入一个List类型的对象,才会导致报上诉错误 解决办法: :改变为数组方式去接收 我没用 :再把这个 List lt WorkFinalStatmentVo gt statmentVoList 封装成一个对象 gt StatmentVoList statmentVoList,生成get,set方法,将对象注入 :。。。或许还有其他的办法解决,有的话请大 ...

2019-01-02 14:10 2 6045 推荐指数:

查看详情

Failed to instantiate [java.util.List]: Specified class is an interface

错误信息提示: Failed to instantiate [java.util.List]: Specified class is an interface; 错误信息意思:参数错误,参数封装出了问题。 原因: 前端给后台传递了一个list对象,本来以为直接用list 可以接收,但是运行 ...

Sun Apr 15 20:52:00 CST 2018 0 5070
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM