I have an Spring-Web controller that is supposed to accept UUIDs as parameters:
@RequestMapping(value = "/searchBy", method = RequestMethod.GET)
public final String searchBy(@RequestParam UUID id) {
//...
}
I am sending to it a simple GET request with a UUID in the form of a String:
http://localhost:8080/myApp/searchBy?id=6ef4269d-d5ed-436b-9a26-9f0ffc39a795
But unfortunately it is sending me a 400 response saying Invalid UUID
What I am missing? The version of Spring Boot I use is: 2.0.2.RELEASE