Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e9d694c

Browse files
[fix] Fixed the database initialization property
1 parent 19ea69e commit e9d694c

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

‎d02/d02s05/d02s05e01-embedded-database/src/main/resources/application.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ spring:
1919

2020
username: sa
2121
password: aVeryComplexPassword
22-
data: data-h2.sql
23-
schema: schema-h2.sql
24-
initialize: false
22+
initialization-mode: never
2523

2624
jpa:
2725
properties:
@@ -33,12 +31,14 @@ spring:
3331
logging:
3432
level:
3533
root: info
34+
com:
35+
zaxxer: warn
3636
org:
3737
apache: warn
3838
# to see the query parameters - change 'sql' to 'debug' and 'type' to 'trace'
39-
hibernate:
40-
sql: warn
41-
type: warn
39+
hibernate:warn
40+
#sql: warn
41+
#type: warn
4242
springframework: warn
4343

4444
pattern:

‎d02/d02s05/d02s05e02-real-database/src/main/resources/application.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spring:
1111
platform: postgresql
1212
username: postgres
1313
url: jdbc:postgresql://localhost:5432/spring_boot
14-
initialize: false
14+
initialization-mode: never
1515

1616
# JPA properties - JpaProperties
1717
jpa:
@@ -32,12 +32,14 @@ spring:
3232
logging:
3333
level:
3434
root: info
35+
com:
36+
zaxxer: warn
3537
org:
3638
apache: warn
3739
# to see the query parameters - change 'sql' to 'debug' and 'type' to 'trace'
38-
hibernate:
39-
sql: warn
40-
type: warn
40+
hibernate:warn
41+
#sql: warn
42+
#type: warn
4143
springframework: warn
4244

4345
pattern:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /