TEN BILLION

  • 홈
  • 태그
  • 방명록

포인트컷 1

Spring AOP를 활용한 로깅(Log) 설정

Spring AOP(Aspect-Oriented Programming)를 활용하면 애플리케이션 전반에 걸친 공통적인 로직을 효율적으로 적용할 수 있습니다. 그중 하나가 로깅 기능입니다. Spring AOP 기반 로깅 설정의 원리를 살펴보겠습니다.전체 코드@Component@Aspect@Slf4jpublic class LoggingAspect { @Around("execution(* com.example..controller.*Controller.*(..)) " + "or execution(* com.example..service.*Service.*(..)) " + "or execution(* com.example..repository.*Repository.*(..

프로젝트/마이그레이션 2025.02.04
이전
1
다음
더보기
프로필사진

TEN BILLION

매일매일 성장하는 개발 일기 !

  • 분류 전체보기 (212) N
    • Back_End (57)
      • Java (39)
      • Spring (10)
      • Design Pattern (4)
      • JPA (4)
    • Front-End (11)
    • DataBase (11)
    • Oracle (10)
    • MySQL (1)
    • CS (18)
    • Network (9)
    • Web (14)
    • Algorithm (63) N
    • 프로젝트 (7)
      • 마이그레이션 (7)
    • Docker (6)
    • AWS (2)

Copyright © Kakao Corp. All rights reserved.

티스토리툴바