Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.
这是因为更换了最新的MySQL驱动:
之前的是:
jdbc.driverClass = com.mysql.dbc.Driver jdbc.url = jdbc:mysql://127.0.0.1:3306/db?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT jdbc.username = root jdbc.password = 789987
现在的改成了这样:
按照最新官方提示支持将com.mysql.jdbc.Driver 改为 com.mysql.cj.jdbc.Driver
jdbc.driverClass = com.mysql.cj.jdbc.Driver jdbc.url = jdbc:mysql://127.0.0.1:3306/db?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT jdbc.username = root jdbc.password = 789987