ID format issue as UUID String in Spring Boot with MongoDb
I created an example of Spring Boot with MongoDb. I have a problem in getting an entity by id with validation as it throws "
Here is the entity shown below
When I call getAirportById(@PathVariable @Valid @UUID final String id) from Controller like localhost:8080/api/v1/airports/6781972fa25a3e577395c444 , I got this issue shown below
Here is the value stored in the collection
How can I fix the issue?
must be a valid UUID".Here is the entity shown below
When I call getAirportById(@PathVariable @Valid @UUID final String id) from Controller like localhost:8080/api/v1/airports/6781972fa25a3e577395c444 , I got this issue shown below
Here is the value stored in the collection
How can I fix the issue?