...

/

MySQL and ExceptionControllerAdvice Integration

MySQL and ExceptionControllerAdvice Integration

Learn how to integrate MySQL for the persistent data saving and use @ControllerAdvice annotation for global exception handling.

We'll cover the following...

Configure MySQL

We’ll configure MySQL for our project. Install MySQL in your local machine if you do not have it installed already.

Create a database

We’ll start by creating a database. Open a terminal and execute the following command to create a new database:

create database ecommerce_v2;

Configure the app

Open the ...