title: Handling invalid PathVariables in Spring Boot
body: <p>Suppose I have a GET controller /api/product/{id} where id is an integer.  What is the best way to handle requests with non-integer ids?  At the moment Spring just throws a java.lang.NumberFormatException and returns a 400.</p>