4.配置数据库连接 在/resource/application.properties中配置:
spring.datasource.url=mysql://106.53.10.146:3306/mybatis?useUnicode=true&characterEncoding=utf-8&useSSL=true&serverTimezone=UTC
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=root
原文:https://blog.51cto.com/14664563/2466188