본문 바로가기

Yebali

검색하기
Yebali
프로필사진 예발이

  • 분류 전체보기 (101)
    • Spring (34)
    • Kotlin (13)
    • Apache (2)
    • Design Pattern (1)
    • DB (6)
    • Kafka (14)
    • Backend Common (20)
    • 설계 (1)
    • AWS (4)
    • Etc (5)
    • 일기장 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
  • Kubernetes
  • K8s
  • consumer
  • spring
  • Kotlin
  • Streams
  • spring kafka
  • git
  • ECS
  • producer
  • AWS
  • API
  • Entity
  • kafka
  • entity graph
  • JPA
  • CodePipeline
  • offsetdatetime
  • bean
  • QueryDSL
  • CI
  • topic생성
  • Spring Data JPA
  • cd
  • centos7
  • Spring JPA
  • PAGING
  • transactionaleventlistener
  • mysql
  • mirror maker2
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Get (1)

Yebali

Spring을 이용한 API개발 - 조회 성능 최적화

Spring에서 조회 API를 개발할 때 조회 성능을 최적화하기 위한 방법들. 1. Entity -> DTO로 변환해서 조회 @GetMapping("/api/v2/simple-orders") public List ordersV2() { List orders = orderRepository.findAll(); List result = orders.stream() .map(o -> new SimpleOrderDto(o)) .collect(toList()); return result; } @Data static class SimpleOrderDto { private Long orderId; private String name; private LocalDateTime orderDate; private Order..

Spring 2021. 10. 11. 19:42
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바