728x90
반응형

Error 125

[ORACLE][SQL] JOIN, WHERE 절 뒤 순서

select * from (select a.*, rowNum rn, nickname from(select * from reply where del='n' order by re_no desc )a ,member m where a.m_id = m.m_id ); 프로젝트 중 조인문을 실행하였는데, 분명 order by re_no desc 를 해주었는데 오름차순으로 결과가 정렬되는 것이었다. 검색했는데도 못찾았고, 아래 where a.m_id = m.m_id 의 순서를 where m.m_id = a.m_id 로 바꾸어주니까 내림차순으로 다시 정렬되었다..... 근데 다시 where a.m_id = m.m_id 로 바꿔봤는데 내림차순으로 잘 정렬되어서 결과가 출력됐다. 뭐가문제일까.... 근데 처음에는 조인을 하..

Error 2022.01.13

[Spring] PropertyNotFoundException 에러

javax.el.PropertyNotFoundException: 타입 [java.lang.String]에서 프로퍼티 [m_id]을(를) 찾을 수 없습니다. 심각: 경로 [/project]의 컨텍스트 내의 서블릿 [appServlet]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [행 [20]에서 [WEB-INF/views/reply/replyList.jsp]을(를) 처리하는 중 예외 발생 17: 18: 19: 20: ${reply.m_id } 21: ${reply.content } 22: ${reply.reg_date } 23: 수정 검색했을 때 jstl에서 변수 오타가 제일 많은 원인이라고 하였는데, 나의 경우에는 items = "rpList"에서..

Error 2022.01.12

[Mybatis] java.lang.IllegalArgumentException 에러

심각: 경로 [/project]의 컨텍스트 내의 서블릿 [appServlet]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for replyns...

Error 2022.01.11

[Mybatis] PersistenceException 오류해결

Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: configuration.xml에 해당 xml매핑과 model파일 설정을 빼먹어놓고 실행을 돌려서 그런것이였다. 검색해봤을 때 다른 원인으로는 dao에서의 namespace와 xml파일의 namespace가 달라서 (스펠링, 대소문자 모두 확인!) 당연히 설정해놓을 수 있는 것을 빼먹으면 미궁에 빠져버린다......

Error 2022.01.09
728x90
반응형