Commit 7bcccc7 1 parent 2e0dfe0 commit 7bcccc7 Copy full SHA for 7bcccc7
File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,14 @@ docker network create hoteler-network
33
33
3 . 启动数据库
34
34
35
35
``` shell script
36
- docker- compose up db
36
+ docker compose up
37
37
```
38
38
39
39
### 数据库迁移
40
40
41
41
``` shell script
42
42
mvn flyway:migrate
43
+ gradle flywayMigrate
43
44
```
44
45
45
46
### 构建
Original file line number Diff line number Diff line change 1
1
plugins {
2
2
id ' org.springframework.boot' version ' 2.5.0'
3
3
id ' io.spring.dependency-management' version ' 1.0.11.RELEASE'
4
+ id " org.flywaydb.flyway" version " 7.8.2"
4
5
id ' java'
5
6
}
6
7
@@ -31,13 +32,19 @@ dependencies {
31
32
// Runtime, com.sun.xml.bind module
32
33
implementation ' org.glassfish.jaxb:jaxb-runtime:3.0.1'
33
34
implementation ' javax.xml.bind:jaxb-api:2.4.0-b180830.0359'
34
- implementation ' org.flywaydb:flyway-core'
35
+ implementation ' org.flywaydb:flyway-core:7.8.2 '
35
36
36
37
developmentOnly ' org.springframework.boot:spring-boot-devtools'
37
38
testImplementation ' org.springframework.boot:spring-boot-starter-test'
38
39
testImplementation ' org.springframework.security:spring-security-test'
39
40
}
40
41
42
+ flyway {
43
+ url = ' jdbc:postgresql://127.0.0.1:5432/postgres'
44
+ user = ' postgres'
45
+ password = ' 123456'
46
+ }
47
+
41
48
test {
42
49
useJUnitPlatform()
43
50
}
You can’t perform that action at this time.
0 commit comments