Skip to content

Commit e799142

Browse files
authored
Fix spring boot properties (#93)
1 parent 0c22d16 commit e799142

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Performance comparison between Spring Boot and Quarkus
44
This project contains the following modules:
55
- [springboot3](springboot3)
66
- A Spring Boot 3.x version of the application
7+
- [springboot4](springboot4)
8+
- A Spring Boot 4.x version of the application
79
- [quarkus3](quarkus3)
810
- A Quarkus 3.x version of the application
911
- [quarkus3-spring-compatibility](quarkus3-spring-compatibility)

springboot3/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ spring:
33
username: fruits
44
password: fruits
55
url: jdbc:postgresql://localhost:5432/fruits
6-
defer-datasource-initialization: true
76
jackson:
87
default-property-inclusion: non_empty
98
jpa:
9+
defer-datasource-initialization: true
1010
properties:
1111
hibernate:
1212
cache:

springboot3/src/test/resources/application.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ spring:
77
hibernate:
88
ddl-auto: create-drop
99
defer-datasource-initialization: true
10+
properties:
11+
hibernate:
12+
cache:
13+
# 1. Enable Hibernate's L2 Caching
14+
use_second_level_cache: true
15+
# 2. Configure the cache region factory (specifies the JCache/Caffeine provider)
16+
region:
17+
factory_class: jcache
1018
jackson:
1119
default-property-inclusion: non_empty
1220
sql:

springboot4/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ spring:
33
username: fruits
44
password: fruits
55
url: jdbc:postgresql://localhost:5432/fruits
6-
defer-datasource-initialization: true
76
jackson:
87
default-property-inclusion: non_empty
98
jpa:
9+
defer-datasource-initialization: true
1010
properties:
1111
hibernate:
1212
cache:

springboot4/src/test/resources/application.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@ spring:
77
hibernate:
88
ddl-auto: create-drop
99
defer-datasource-initialization: true
10+
properties:
11+
hibernate:
12+
cache:
13+
# 1. Enable Hibernate's L2 Caching
14+
use_second_level_cache: true
15+
# 2. Configure the cache region factory (specifies the JCache/Caffeine provider)
16+
region:
17+
factory_class: jcache
1018
jackson:
1119
default-property-inclusion: non_empty
1220
sql:
1321
init:
14-
mode: always
22+
mode: always

0 commit comments

Comments
 (0)