Skip to content

Hyune-s-lab/kopring-workshop

Repository files navigation

  • 대부분의 모듈은 kotlin + spring + web application 베이스로 구성되어 있습니다.
  • 대부분의 모듈은 독립 실행이 가능 합니다. (local profile)
  • step 별로 commit 을 참고하시면 좋습니다.

web

  • step 1. RestControllerAdvice
  • step 2. handle CustomException

logging

  • step 1. HandlerInterceptor
  • step 2. add RestControllerAdvice
  • step 3. handle request body
  • step 4. using MDC
  • step 5. measure response duration
  • step 6. using MDC with async
  • step 7. using MDC with coroutine
  • step 1. separate env
  • step 2. create logback.xml
  • step 3. add error appender with JsonLayout
  • step 4. using MDC
  • step 1. boot with datadog agent
  • step 2. using coroutine

database

  • step 0. set mongodb with local docker
  • step 1. repository save & find
  • step 2. set testcontainers for test
  • step 1. set mysql with testcontainers
  • step 2. set transactional logging
  • step 3. set p6spy for logging
  • step 4. set querydsl

batch

  • step 1. init member 5만명 - using jpa
  • step 2. init member 100만명 - using jdbc multiline insert
  • step 3. 기존 약관에 동의된 유저들에게 알림
  • step n. quartz scheduler, spring batch ...

test

  • step 1. apply mysql testcontainers to local, test profile
  • step 2. apply redis testcontainers to local, test profile
  • step 3. apply kafka testcontainers to local, test profile
  • WebTestSupport
  • ScenarioTestSupport

external-api

  • step 1. external api call with openfeign
  • step 2. change external api end-point to wiremock at test profile
  • step 3. test read-timeout

About

[code-template] kopring-workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages