程式碼如下:
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關鍵字嗎
這種前面只加修飾詞的用法是依據什麼?