程式码如下:
import javax.ws.rs.core.Response;
@GET
@Produces({"application/json"})
public Response getSearchResults(@Context HttpServletRequest request)
{
String title = request.getParameter("title");
String type = request.getParameter("type");
return search(request, title, null, new String[] { type });
}
而关于Response的定义在https://tinyurl.com/oc8fyse
想请问一般的类别前面不是都会宣告class关键字吗
这种前面只加修饰词的用法是依据什么?