error 4

error[Error] 에러기록_스프링_Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

SEVERE: 경로 [/web]의 컨텍스트 내의 서블릿 [appServlet]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.sist.mapper.BoardMapper.boardFindData]을(를) 발생시켰습니다. org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.sist.mapper.BoardMapper.boar..

error 2022.09.23

[Error] 에러기록_형변환_The method recipeDetailData(int) in the type RecipeDAO is not applicable for the arguments (String)

The method recipeDetailData(int) in the type RecipeDAO is not applicable for the arguments (String) 에러 발생 오늘의 에러는 형변환 문제이다. 코딩을 하면서 굉장히 자주 마주치는 에러 중 하나다! 에러 파악 자바에는 다양한 데이터형이 존재하는데, 값을 대입할 때 같은 데이터형 또는 자동변환이 가능한 데이터형만 입력 할 수 있다. 위의 경우는 int(정수) String(문자열) 이 대립되는 상황으로 자동형변환이 불가능 하기 때문에 직접 형변환을 해야한다. 에러 해결 int 정수형인 cr_no 변수를 String 문자열로 형변환 해보자. 이클립스에서 제공하는 Integer 클래스에서 parseInt 라는 메서드를 이용하면 형변환이..

error 2022.08.10

[Error] 에러기록_자바_이클립스_Unhandled exception type IOException_Surround with try/catch

Unhandled exception type IOException Surround with try/catch 문법에 맞춰서 코딩을 잘 하고 있다고 생각했는데 밑에 빨간줄이 그어졌다. 이렇게 빨간 줄이 생기면 일단 멈춰야 한다. 나같은 초자는 나중에 잡으면 일이 더 커지기 때문..! 빨간 줄에 마우스를 가져다 대면 친절하게 오류 안내를 해준다. 다행히도 아는 단어가 보였다 바로 'try/catch' Resources.getResourceAsReader 은 IOException에 포함되기 때문에 try ~ catch 절 안에 존재해야 한다는 것이다. 이렇게 되면 당황하지 말고 해당 문장을 try ~ catch 절 안에 작성하면 된다. try ~ catch 절로 감싸주니 오류가 사라졌다! tip 1 catch..

error 2022.08.09

[error] 에러기록_이클립스_Server 및 Tomcat 오류

Problem Occurred Publishing to Tomcat v9.0 Server at localhost...' Could not publish server configuration for Tomcat v9.0 Server at localhost. Multiple Contexts have a path of "/TeamProject1". 오류 발생 깃허브에서 팀 프로젝트로 연결되어있는 데이터는 수정하는데 부담이 돼서 수정 전에 미리 복사 해두고 복사한 데이터를 가지고 작업을 하는데요. 근데 수정 후 main페이지에서 Run on Server 버튼으로 톰캣에 연결하면 저런 오류 창이 반복해서 뜹니다. 해결 방법 결과부터 얘기하자면, Servers > 톰캣 > server.xml 파일에서 확인 할 수 ..

error 2022.08.05