Spring Boot exception handle with Error Code Mapping

Spring boot is comprehensive rest API development framework. It will support develop high end API facilities on top of spring framework with small configurations. This post I will describe how to use exception handling with error code mapping.

First task is to create Error code for your API. As example if you have API for product retrieve details. If product is not available we have to pass error code with 404 http status code . Read more