I am want to use LocalDate as @QueryParam, but I am getting compile-time error as
Incorrect parameter type
Inspection info: Checks types of parameters annotated @PathParam, @QueryParam, etc. The type of the annotated parameter, field or property must either:
Be a primitive type.
Have a constructor that accepts a single String argument.
Have a static method named valueOf or fromString that accepts a single String argument (see, for example, Integer.valueOf(String)).
Have a registered implementation of ParamConverterProvider JAX-RS extension SPI that returns a ParamConverter instance capable of a "from string" conversion for the type.
Be List<T>, Set<T> or SortedSet<T>, where T satisfies 2, 3, or 4 above. The resulting collection is read-only.
I am using like below in my Resource class
@QueryParam("lastLoginStartDate") LocalDate startDate
Is there any way we can use LocalDate as javax.ws.rs.QueryParam in API?