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
- SpringBoot
- 자바
- pointcut
- kotlin
- 김영한
- JDBC
- Thymeleaf
- java
- springdatajpa
- Exception
- Proxy
- spring
- 알고리즘
- Spring Boot
- 백준
- Greedy
- transaction
- 인프런
- Servlet
- JPQL
- 그리디
- db
- Android
- 스프링
- 스프링 핵심 기능
- 스프링 핵심 원리
- jpa
- QueryDSL
- http
- AOP
Archives
- Today
- Total
목록활용 (1)
개발자되기 프로젝트
[API예외] HandlerExceptionResolver 활용
1.예외를 ExceptionResolver에서 마무리하기 예외가 발생하면 WAS까지 예외가 던져지고, WAS에서 오류 페이지 정보를 찾아서 다시 /error 를 호출하는 과정은 생각해보면 너무 복잡하다. ExceptionResolver 를 활용하면 예외가 발생했을 때 이런 복잡한 과정 없이 ExceptionResolver에서 문제를 깔끔하게 해결- > BasicErrorController호출하는 등의 절차가 없음. 2. UserException 임의의 예외를 만듦 public class UserException extends RuntimeException{ public UserException() { super(); } public UserException(String message) { super(me..
인프런/[인프런] 스프링 MVC 2
2021. 9. 28. 22:45