일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 스프링
- Servlet
- Spring Boot
- springdatajpa
- JDBC
- spring
- kotlin
- java
- jpa
- http
- 인프런
- transaction
- 그리디
- 자바
- Android
- Exception
- JPQL
- 김영한
- AOP
- pointcut
- Thymeleaf
- 스프링 핵심 원리
- QueryDSL
- db
- SpringBoot
- 알고리즘
- Proxy
- 스프링 핵심 기능
- 백준
- Greedy
- Today
- Total
목록등록 (2)
개발자되기 프로젝트
Servlet에서 제공하는 기본 예외 처리 화면은 너무 투박하다 ㅋㅋㅋ 서블릿은 Exception (예외)가 발생해서 서블릿 밖으로 전달되거나 또는 response.sendError() 가 호출 되었을 때 각각의 상황에 맞춘 오류 처리 기능을 제공한다. 오류 화면을 준비해두면 이 기능을 사용했을 때 좀더 깔끔한 오류화면 가능. 1. Servlet 오류 페이지 등록 ErrorPage(status or Exception, path) : 에러,예외 터졌을 때 어디로? import org.springframework.boot.web.server.ConfigurableWebServerFactory; import org.springframework.boot.web.server.ErrorPage; import org..
1. LogInterceptor class HandlerInterceptor를 구현 @Slf4j public class LogInterceptor implements HandlerInterceptor { public static final String LOG_ID = "logId"; @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { String requestURI = request.getRequestURI(); String uuid = UUID.randomUUID().toString(); request.setAttribute(L..