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

spring mvc 异常处理

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

解决方法

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

posted on 2022-05-27 10:19  正义的伙伴!  阅读(774)  评论(0编辑  收藏  举报

导航

//增加一段JS脚本,为目录生成使用