I created an endpoint, and I want to display a message if I don't fill a specific parameter.
For example:
@NotNull(message = "The distance must be specified.")
@QueryParam("distance")
final double distance;
But for some reason I don't receive anything if I don't fill the field. Maybe because this is not a String? How should I do?