org.springframework.boot
spring-boot-starter-parent
1.5.11.RELEASE
org.springframework.cloud
spring-cloud-config-server
org.springframework.boot
spring-boot-starter-jdbc
org.flywaydb
flyway-core
5.0.3
mysql
mysql-connector-java
5.1.21
org.springframework.cloud
spring-cloud-dependencies
Edgware.SR3
pom
import
第二步:准备schema创建文件。在resources
下创建schema
目录,并加入V1__Base_version.sql
文件,具体内容如下:
CREATE TABLE properties
(
id
int(11) NOT NULL,
key
varchar(50) NOT NULL,
value
varchar(500) NOT NULL,
application
varchar(50) NOT NULL,
profile
varchar(50) NOT NULL,
label
varchar(50) NOT NULL,
PRIMARY KEY (id
)
) ENGINE=Inn