警告
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.
2023-06-02 18:00:49.184 INFO 35767 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
gradle
- implementation 'mysql:mysql-connector-java:8.0.33'
设置 appation.yml
driver-class-name: com.mysql.cj.jdbc.Driver