HackerRank 30 Days of Code Challenges - 0 Days.
By Cinnamon's Pot | 2016년 11월 12일 |
프로젝트들도 끝나고 해서 취미로 시작해 본 HackerRank 30일이다. 뭐 0 Days는 역시 HelloWolrd 다. 목표Task To complete this challenge, you must save a line of input from stdin to a variable, print Hello, World. on a single line, and finally print the value of your variable on a second line.You've got this!해당 도전을 해결하기 위해서는 stdin을 변수에 입력시켜야 하고 Hello, World 를 첫 열에 inputFormat을 두번째 열에 출력해야 한다.Sample InputWelcome to 30 Days of Cod
Spring -ErrorPage[2] -ExceptionResolver
By 별소리의 엄마쟤흙먹어 | 2022년 8월 3일 |
이번에는 ExceptionResolver 관련 간단한 정리입니다. 미리 준비되어 있는 ExceptionResolver가 몇 종류 있는데, 개인적으로는 ExceptionHandlerExceptionResolver만 쓸 줄 알아도 충분하다고 봅니다. ExceptionResolver DispatcherServlet에 ExceptionResolver를 선언하여 에러 발생 시 해당 ExceptionResolver가 처리하게 하는 방식이다. 예제 <web.xml> 이글루스에서는 코드가 깔끔하게 안 나오니 티스토리에서 보시는 걸 권장합니다.(이 링크를 누르면 새 창이 열립니다.) action org.springframework.web.servlet.DispatcherSer