首页 > 其他 > 详细

Parameter infoDTOs of type T from private T com.ListVO.setInfoDTOs is not resolvable to a concrete type.

时间:2017-10-16 14:40:15      阅读:632      评论:0      收藏:0      [点我收藏+]

WARN  org.glassfish.jersey.internal.Errors - The following warnings have been detected: WARNING: Parameter 1 of type T from public void com.ListVO.setInfoDTOs(T) is not resolvable to a concrete type.
WARNING: Parameter infoDTOs of type T from private T com.ListVO.setInfoDTOs is not resolvable to a concrete type.

项目使用的是泛型 ,出错属性是 private T infoDTOs 设置了setter、getter ,程序在返回给前台的接口处,return result;报以上错误

最终得出结论:

  使用 Postman 测试时,请求链接使用的是 GET 请求,而在被调用的方法上没写 @GET 方法注释,导致结果已经得到,但是Postman没有返回结果,并报错

  在请求方法上加上对应的请求方式(这里是加上@GET注解),问题解决

Parameter infoDTOs of type T from private T com.ListVO.setInfoDTOs is not resolvable to a concrete type.

原文:http://www.cnblogs.com/gczmn/p/7676731.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!