GeezerVison is showing github.com — fix: update sql initialisation properties (#8780) · thehands79/java-docs-samples@2ae640b
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: run/idp-sql/pom.xml +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,8 +30,8 @@ limitations under the License. |
30 | 30 | </parent> |
31 | 31 |
|
32 | 32 | <properties> |
33 | | - <maven.compiler.target>17</maven.compiler.target> |
34 | | - <maven.compiler.source>17</maven.compiler.source> |
| 33 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 34 | + <maven.compiler.source>1.8</maven.compiler.source> |
35 | 35 | </properties> |
36 | 36 |
|
37 | 37 | <dependencyManagement> |
@@ -40,14 +40,14 @@ limitations under the License. |
40 | 40 | <!-- Import dependency management from Spring Boot --> |
41 | 41 | <groupId>org.springframework.boot</groupId> |
42 | 42 | <artifactId>spring-boot-dependencies</artifactId> |
43 | | - <version>3.1.5</version> |
| 43 | + <version>2.7.17</version> |
44 | 44 | <type>pom</type> |
45 | 45 | <scope>import</scope> |
46 | 46 | </dependency> |
47 | 47 | <dependency> |
48 | 48 | <groupId>com.google.cloud</groupId> |
49 | 49 | <artifactId>spring-cloud-gcp-dependencies</artifactId> |
50 | | - <version>4.7.1</version> |
| 50 | + <version>3.7.2</version> |
51 | 51 | <type>pom</type> |
52 | 52 | <scope>import</scope> |
53 | 53 | </dependency> |
|
Collapse file
Copy file name to clipboardExpand all lines: run/idp-sql/src/main/resources/application.properties +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ server.port=${PORT:8080} |
24 | 24 | # [END cloudrun_user_auth_sql_connect] |
25 | 25 |
|
26 | 26 | # Create PostgreSQL table on startup |
27 | | -spring.datasource.initialization-mode=always |
| 27 | +spring.sql.init.mode=always |
28 | 28 | # Override "table already exists" error |
29 | | -spring.datasource.continue-on-error=true |
| 29 | +spring.sql.init.continue-on-error=true |
30 | 30 |
|
Collapse file
Copy file name to clipboardExpand all lines: run/idp-sql/src/test/resources/application.properties +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,7 +18,7 @@ spring.cloud.gcp.sql.database-name=${PG_DB} |
18 | 18 | spring.cloud.gcp.sql.instance-connection-name=${PG_CONNECTION_NAME} |
19 | 19 |
|
20 | 20 | # Create PostgreSQL table on startup |
21 | | -spring.datasource.initialization-mode=always |
| 21 | +spring.sql.init.mode=always |
22 | 22 | # Override "table already exists" error |
23 | | -spring.datasource.continue-on-error=true |
| 23 | +spring.sql.init.continue-on-error=true |
24 | 24 |
|