0
点赞
收藏
分享

微信扫一扫

SpringMVC - Failed to instantiate Specified class is an interface

野见 2022-05-18 阅读 159


报错问题

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

解决方案

Action层方法接收前端传来绑定数据时,不能有“未注解接参的List类”,否则就会报这个错误。加个 @RequestPara 或 @RequestBody 都行。


举报

相关推荐

0 条评论