mysql 8.0,运行springboot项目配置:
1.修改pom.xml
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<!-- 对应 : maven的jar包中mysql的版本配置为8.0.11 -->
<version>8.0.11</version>
</dependency>
2.修改application.properties对应的数据库部分
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/harvest?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true
posted on 2019-03-20 22:55 holyqueen 阅读(1348) 评论(0) 编辑 收藏 举报