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 |
Tags
- kotlin
- springdatajpa
- 스프링 핵심 기능
- 스프링 핵심 원리
- spring
- 자바
- pointcut
- 알고리즘
- QueryDSL
- 그리디
- Servlet
- Spring Boot
- 김영한
- java
- jpa
- Android
- AOP
- Greedy
- Thymeleaf
- JPQL
- transaction
- http
- JDBC
- 스프링
- Exception
- 백준
- Proxy
- SpringBoot
- db
- 인프런
Archives
- Today
- Total
목록예제 (1)
개발자되기 프로젝트
[스프링AOP실전] 로그 출력 AOP
@Trace 가 메서드에 붙어 있으면 호출 정보가 출력되도록 하자. 1. @Trace @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface Trace { } 2. TraceAspect @Slf4j @Aspect public class TraceAspect { @Before("@annotation(hello.aop.exam.annotation.Trace)") public void doTrace(JoinPoint joinPoint){ Object[] args = joinPoint.getArgs(); log.info("[trace] {}, args={}", joinPoint.getSignature(), args); }..
인프런/[인프런] 스프링 핵심 원리 - 고급
2022. 1. 9. 11:48