File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff 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
96108Start the application and check the log.
97109
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments