SpringBoot配置连接mysql

1
2
3
4
5
6
spring.datasource.url=jdbc:mysql://域名或者IP:mysql端口/数据库名称?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&initialTimeout=600&maxReconnects=60
spring.datasource.username=数据库账号
spring.datasource.password=数据库密码
spring.datasource.maximum-pool-size=60
spring.datasource.minimum-idle=10
spring.datasource.driver-class-name=com.mysql.jdbc.Driver