◈ 백준 - ★재귀★ (2606*,1012*) ■ 바이러스(2606번) ■ 유기농배추(1012번) ◈ Restful Web Service ■ HTTP Status 제어하기 User user =service.findOne(id); if (user == null) { // 데이터가 null이라면 throw new UserNotFoundException(String.format("ID[%s not found", id)); // } 만약 user값이 null값으로 나온다면 UserNotFoundException 클래스에 예외를 던지고 @ResponseStatus(HttpStatus.NOT_FOUND) public class UserNotFoundException extends RuntimeException { ..