Don't have Telegram yet? Try it now!
https://it.asm0dey.ru/2016/10/09/validation-of-pathvariable-in-spring-mvc/
Validation of @PathVariable in Spring MVC