How to handle exception in Spring Boot Prerequisites JDK 17+ Maven 3.3+ Client URL (cURL) Build for source mvn install Run the application java -jar ./target/app.jar Test the application curl -L -i -X GET 'localhost:8080/customer/000' curl -L -i -X GET 'localhost:8080/customer/001' curl -L -i -X GET 'localhost:8080/customer/002'