/spring-boot-controller-advice

Demo Spring Boot app showing handling exceptions with Controller Advice

Primary LanguageJavaThe UnlicenseUnlicense

spring-boot-controller-advice

keep_growing logo

This is a demo project to test how global exception handling work in an example Spring Boot project.

GitHub

Prerequisites

Getting started

First, clone this repository.

Then, build it locally with:

mvn clean install

Finally, you can run the application with:

mvn spring-boot:run

Examples

You'll find the Postman collection with example requests in the postman directory. The examples contain both correct and incorrect requests to help you work with this project.

Some examples:

invalid format

json processing

method argument not valid

method argument type mismatch

Built With