Skip to content

Commit d6a7b48

Browse files
committed
update README.md
1 parent 1c01c43 commit d6a7b48

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Hibernate:
1919
from
2020
example
2121
22-
WARN [QueryCountLogger] - QueryCountPerRequest(apiUrl=GET /examples, totalQueryCount=2, totalQueryMilliSeconds=1)
22+
ERROR --- 'GET /examples' - totalQueryCount: 2, totalSpendTime: 7ms
2323
```
2424

2525
<br>
@@ -28,6 +28,16 @@ WARN [QueryCountLogger] - QueryCountPerRequest(apiUrl=GET /examples, totalQuery
2828

2929
### 1. Add dependency
3030

31+
> **Important Note**
32+
> Spring Boot 3.x uses `jakarta.*` packages while Spring Boot 2.x uses `javax.*` packages. Make sure to select the compatible library version for your project.
33+
34+
Choose the appropriate version based on your Spring Boot version:
35+
36+
| Spring Boot Version | Library Version |
37+
|---------------------|---------------------|
38+
| Spring Boot 2.x | 2.x.x-spring-boot-2 |
39+
| Spring Boot 3.x | 2.x.x-spring-boot-3 |
40+
3141
### In Java Gradle(Groovy DSL)
3242

3343
```groovy
@@ -37,7 +47,11 @@ repositories {
3747
}
3848
3949
dependencies {
40-
implementation 'com.github.Hyeon9mak:multi-datasource-query-counter:1.0.1'
50+
// For Spring Boot 2.x
51+
implementation 'com.github.Hyeon9mak:multi-datasource-query-counter:2.0.2-spring-boot-2'
52+
53+
// For Spring Boot 3.x
54+
// implementation 'com.github.Hyeon9mak:multi-datasource-query-counter:2.0.2-spring-boot-3'
4155
}
4256
```
4357

@@ -50,7 +64,11 @@ repositories {
5064
}
5165

5266
dependencies {
53-
implementation("com.github.Hyeon9mak:multi-datasource-query-counter:1.0.1")
67+
// For Spring Boot 2.x
68+
implementation("com.github.Hyeon9mak:multi-datasource-query-counter:2.0.2-spring-boot-2")
69+
70+
// For Spring Boot 3.x
71+
// implementation("com.github.Hyeon9mak:multi-datasource-query-counter:2.0.2-spring-boot-3")
5472
}
5573
```
5674

@@ -76,7 +94,7 @@ query-counter.logging.level:
7694
Start the application and check the log.
7795
7896
```
79-
ERROR [QueryCountLogger] - QueryCountPerRequest(apiUrl=GET /examples, totalQueryCount=23, totalQueryMilliSeconds=1)
97+
ERROR --- 'GET /examples' - totalQueryCount: 2, totalSpendTime: 7ms
8098
```
8199
82100
Enjoy it! 🎉
@@ -94,4 +112,5 @@ That's it!
94112
95113
## 🖥️ Recommended articles
96114
97-
(WIP)
115+
- https://medium.com/@hyeon9mak/api-%EC%9A%94%EC%B2%AD-%EB%8B%B9-%EC%BF%BC%EB%A6%AC-%EA%B0%9C%EC%88%98%EB%A5%BC-%EC%95%8C%EA%B3%A0-%EC%8B%B6%EC%96%B4-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC%EA%B9%8C%EC%A7%80-%EB%A7%8C%EB%93%A0-%EC%9D%B4%EC%95%BC%EA%B8%B0-%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC-%EC%A0%9C%EC%9E%91-de39f0d27351
116+
- https://medium.com/monday-9-pm/hibernate-%EC%9D%98-%EB%B6%88%ED%8E%B8%ED%95%9C-%ED%8E%B8%EC%9D%98-%EA%B8%B0%EB%8A%A5%EB%93%A4-06a1fbc7492a

0 commit comments

Comments
 (0)