Loading class `com.mysql.jdbc.Driver‘. This is deprecated

当使用mysql,注册驱动时出现

Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

这个时候说明 驱动地址要更新了
解决方法为

//把com.mysql.jdbc.Driver  改为com.mysql.cj.jdbc.Driver
上一篇:Java注解


下一篇:nodejs版本导致无法install成功