springboot项目报Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is`...解

参考文章:https://blog.csdn.net/qq_42815754/article/details/83652253

<!-- MySql驱动 -->
<dependency>
   <groupId>mysql</groupId>
   <artifactId>mysql-connector-java</artifactId>
</dependency>
server.port=xxx
spring.datasource.url=jdbc:mysql://localhost/xxx?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8
spring.datasource.username=
spring.datasource.password=
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
posted @ 2019-07-05 15:30  疯子110  阅读(2817)  评论(0编辑  收藏  举报