今天准备试试之前的springboot项目还好不好使,结果启动了半天,给我报错
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.
我把进度款驱动删除掉 重新加载一次就可以了。
步骤在下面
一、File--->Project Structure--->SDKs
减号,删掉这个jdk
二、File--->Project Structure--->Module--->Dependencies
添加jdk,找到文件中jdk的存放为位置,添加成功,重新启动项目即可。