MySQL8 connection problem

1. Deprecated class

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.

Modify the driver package location:

1
jdbc.driver=com.mysql.cj.jdbc.Driver

2. Character and TimeZone

Modify the connection url:

1
jdbc.url=jdbc:mysql://loaclhost:3306/demo?useUnicode=true&characterEncoding=utf-8&serverTimeZone=Asia/Shanghai

MySQL8 connection problem
https://www.hardyhu.cn/2022/08/02/MySQL8-connection-problem/
Author
John Doe
Posted on
August 2, 2022
Licensed under