Background spring MVC receives the list parameter error as follows: Org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Java.util.List]: Specified class is an interface
Org.springframework.beans.BeanInstantiationException:Failed to instantiate [Java.util.List]: Specifiedclass isAnInterfaceAt Org.springframework.beans.BeanUtils.instantiateClass (Beanutils.java: About) at Org.springframework.web.method.annotation.ModelAttributeMethodProcessor.createAttribute ( Modelattributemethodprocessor.java:141) at Org.springframework.web.servlet.mvc.method.annotation.ServletModelAttributeMethodProcessor.createAttribute ( Servletmodelattributemethodprocessor.java: the) at Org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument ( Modelattributemethodprocessor.java:101) at Org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument ( Handlermethodargumentresolvercomposite.java:121) at Org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues ( Invocablehandlermethod.java:158) at Org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest ( Invocablehandlermethod.java: -) at Org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle ( Servletinvocablehandlermethod.java: the) at Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod ( Requestmappinghandleradapter.java:827) at Org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal ( Requestmappinghandleradapter.java:738) at Org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle ( Abstracthandlermethodadapter.java: -) at Org.springframework.web.servlet.DispatcherServlet.doDispatch (Dispatcherservlet.java:963) at Org.springframework.web.servlet.DispatcherServlet.doService (Dispatcherservlet.java:897) at Org.springframework.web.servlet.FrameworkServlet.processRequest (Frameworkservlet.java:970) at Org.springframework.web.servlet.FrameworkServlet.doPost (Frameworkservlet.java:872) at Javax.servlet.http.HttpServlet.service (Httpservlet.java:648) at Org.springframework.web.servlet.FrameworkServlet.service (Frameworkservlet.java:846) at Javax.servlet.http.HttpServlet.service (Httpservlet.java:729) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java: the) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:165) at Org.apache.tomcat.websocket.server.WsFilter.doFilter (Wsfilter.java: the) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:192) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:165) at Org.springframework.web.filter.RequestContextFilter.doFilterInternal (Requestcontextfilter.java: About) at Org.springframework.web.filter.OncePerRequestFilter.doFilter (Onceperrequestfilter.java:107) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:192) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:165) at Org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal (Httpputformcontentfilter.java: the) at Org.springframework.web.filter.OncePerRequestFilter.doFilter (Onceperrequestfilter.java:107) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:192) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:165) at Org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal (Hiddenhttpmethodfilter.java: Bayi) at Org.springframework.web.filter.OncePerRequestFilter.doFilter (Onceperrequestfilter.java:107) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:192) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:165) at Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (Characterencodingfilter.java: 197) at Org.springframework.web.filter.OncePerRequestFilter.doFilter (Onceperrequestfilter.java:107) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applicationfilterchain.java:192) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (Applicationfilterchain.java:165) at Org.apache.catalina.core.StandardWrapperValve.invoke (Standardwrappervalve.java:198) at Org.apache.catalina.core.StandardContextValve.invoke (Standardcontextvalve.java: the) at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (Authenticatorbase.java:474) at Org.apache.catalina.core.StandardHostValve.invoke (Standardhostvalve.java: $) at Org.apache.catalina.valves.ErrorReportValve.invoke (Errorreportvalve.java: -) at Org.apache.catalina.core.StandardEngineValve.invoke (Standardenginevalve.java: the) at Org.apache.catalina.connector.CoyoteAdapter.service (Coyoteadapter.java:349) at Org.apache.coyote.http11.Http11Processor.service (Http11processor.java:783) at Org.apache.coyote.AbstractProcessorLight.process (Abstractprocessorlight.java: the) at Org.apache.coyote.abstractprotocol$connectionhandler.process (Abstractprotocol.java:798) at Org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun (Nioendpoint.java:1434) at Org.apache.tomcat.util.net.SocketProcessorBase.run (Socketprocessorbase.java: the) at Java.util.concurrent.ThreadPoolExecutor.runWorker (Threadpoolexecutor.java:1149) at Java.util.concurrent.threadpoolexecutor$worker.run (Threadpoolexecutor.java:624) at Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (Taskthread.java: A) at Java.lang.Thread.run (Thread.java:748)
View Code
Solution:
The foreground needs to pass in the JSON format Object array, the backstage can receive normally
"Spring MVC" background spring MVC receives the list parameter error as follows: Org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Java.util.List]: Specified class is an interface