以mysql 5 为例:
server:
port: 8180
spring:
redis:
host: 192.168.79.128
password: 123456
database: 0
timeout: 3000
port: 6379
datasource:
type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://192.168.79.128:3306/market?characterEncoding=utf-8
username: root
password: 123456
druid:
driver-class-name: com.mysql.jdbc.Driver