반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 개방/폐쇄 원칙
- ClientHttpRequestInterceptor
- fotmatter
- LogInterceptor
- Save Action
- JsonStringType
- restTemple
- 포맷터
- RestTemplate
- ResponseBodyAdvice
- spring
- AccessLevel
- jpa
- auto configuration
- AOP 매개변수
- Thread Safety
- Spring Boot
- gradle
- Stream
- AOP target
- findAny
- JsonType
- AOP this
- @AutoConfiguration
- vaultTemplate
- java
- 쓰레드 안전
- findFirst
- Starter
- AOP
Archives
- Today
- Total
목록로그 (1)
맨땅에 헤딩하는 개바른자
[AOP] 실전예제 로그TRACE
특정 메소드 단위로 어노테이션이 붙은 곳에서만 param 값에 대한 로그를 찍는 AOP를 적용해보는 글입니다. 실전코드 : https://github.com/ymwoo88/study-springboot-aop/tree/feature/스프링-AOP-실전코딩-로그trace 실전예제 커스텀 어노테이션 생성 로그 Trace에 사용 될 어노테이션으로 명칭을 그래로 Trace로 생성 @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface Trace { } @Aspect 컨피그 추가 어노테이션 기반 joinPoint 생성 @Slf4j @Aspect public class TraceAspect { @Before("@annotat..
JAVA/AOP
2023. 4. 18. 19:47