Skip to content

Commit 48c9ed4

Browse files
committed
update main README.md docs
1 parent fc2ac81 commit 48c9ed4

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

README-EN.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,19 @@ query-counter.logging.level:
9191
enable: false
9292
```
9393
94-
### 3. Check the log
94+
### 3. Specify the target API
95+
96+
`@CountQueries` annotation is used to specify the API you want to measure.
97+
98+
```java
99+
@CountQueries
100+
@GetMapping("/examples")
101+
public List<Example> getExamples() {
102+
return repository.getExamples();
103+
}
104+
```
105+
106+
### 4. Check the log
95107

96108
Start the application and check the log.
97109

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,19 @@ query-counter.logging.level:
9191
enable: false
9292
```
9393
94-
### 3. 로깅 결과 확인
94+
### 3. 대상 API 지정
95+
96+
`@CountQueries` 어노테이션을 사용하여 측정하고 싶은 API에 지정하세요.
97+
98+
```java
99+
@CountQueries
100+
@GetMapping("/examples")
101+
public List<Example> getExamples() {
102+
return repository.getExamples();
103+
}
104+
```
105+
106+
### 4. 로깅 결과 확인
95107

96108
애플리케이션을 시작하고 로그를 확인하세요.
97109

0 commit comments

Comments
 (0)