idea提示Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is
com.mysql.cj.jdbc
修改application.yml中的驱动为com.mysql.cj.jdbc
下面展示一些 内联代码片
。
// application.yml
spring:
datasource:
data-username: root
data-password: ******
url: jdbc: mysql://localhost:3306/shop?useUnicode=true&characterEncoding=utf-8
driver-class-name: com.mysql.cj.jdbc.Driver