在我的 Spring Boot REST API 应用程序中,我需要GET通过接受一个强类型列表作为我的输入来处理 HTTP :@RestControllerpublic class CusttableController { @RequestMapping(value="/custtable", method=RequestMethod.GET) public List<MyObject> getCusttableRecords(List<Custtable> customers) {...}这给了我这个错误:org.springframework.beans.BeanInstantiationException:无法实例化[java.util.List]:指定的类是一个接口在GET请求中,我在 Spring Boot 中接受强类型列表的正确方法是什么?
添加回答
举报
0/150
提交
取消