可以在application.yml添加配置项:
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
# 使用开发用数据库book_dev
url: jdbc:mysql://192.168.99.100:32770/my_blog?useSSL=false&zeroDateTimeBehavior=convertToNull&characterEncoding=utf8&characterSetResults=utf8
username: wood