Spring boot MySql驱动8.0.13版本的注意事项

application.properties文件中配置内容

#mysql config
spring.datasource.url=jdbc:mysql://localhost:3306/database?useUnicode=true&characterEncoding=utf8&useSSL=false
spring.datasource.username=*****
spring.datasource.password=****
spring.datasource.tomcat.connection-properties=useUnicode=true;characterEncoding=utf-8;
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

pom.xml中的依赖


   mysql
   mysql-connector-java
   8.0.13
   runtime

你可能感兴趣的:(idea)