Java Springboot Pathvariable Validation Where The Condition

Java Springboot Pathvariable Validation Where The Condition