Tip the contents:
Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
Solution: Load database-driven statement changes com.mysql.cj.jdbc.Driver
5.x version of the driver file corresponding jar package is:
Class.forName ( "com.mysql.jdbc.Driver");
statement to load the database driver
8.0x version of the drivers corresponding to the jar package:
the Class.forName ( "com.mysql.cj.jdbc.Driver");