Servlet.service() for servlet [dispatcherServlet] in
context with path [] threw exception [Request processing
failed; nested exception is
java.lang.IllegalStateException: No primary or default
constructor found for interface java.util.List] with root
cause
java.lang.NoSuchMethodException: java.util.List.<init>()
使用的vue框架
**解决方法:我开始用的是@Resuorce注解,控制台报以上错误,把@Resource注解换成@Autowired问题解决
注意:接口用@Autowired会提示报错,但是不影响使用,这个问题可以直接忽略
*