我是cxf webservices的新手。如何在cxf webservice中获取请求参数
我有一个webservice类,其中我有一个方法来删除一个学生基于id通过html表单发送请求。现在
@GET
@Path("/deletestudent")
@Description(value="Delete the identified student")
public Response deleteStudent(@RequestParam("studentId")
@Description(value="Student ID to delete") final String studentId) {
我的问题是这样的,当我尝试访问此网址为localhost/student/deleteStudent?studentId=abc
我越来越studentId为空字符串“而不是“ABC””。我做错了什么?
任何帮助将非常有帮助。