ブール値パラメーターを使用して REST を呼び出すと、クライアント側でfalse
渡されても値を受け取ります。true
クライアント:
$http.post("http://localhost/getServers/?light=true")
サーバ:
@Path("/getServers")
@POST
@Produces({MediaType.APPLICATION_JSON})
public Response getServers(
@Context HttpServletRequest request,
@DefaultValue("true") @QueryParam("light") boolean light)
{
// light is false even though true was passed
...
}