728x90
반응형

Error 88

[HTML] disabled 와 readonly

태그를 사용할 때 value값을 띄우고 사용자가 값을 입력하지 못하게 만들기 위해서 쓸 수 있는 속성이 disabled="disabled" 와 readonly="readonly" 가 있다. 둘의 차이는 disabled로 사용하면 값을 입력하지도 못하고 컨트롤러에 값이 넘어가지도 않는다. readonly는 값을 입력하지 못하고 컨트롤러에 값은 넘어간다. 그래서 값을 넘기려면 readonly를 써야한다. disabled를 사용해서 값이 넘어가지 않아서 에러가 생길 수 있어서 나의 경우에는 readonly를 사용하였다.

Error 2022.01.20

[Error]nested exception is java.io.FileNotFoundException: class path resource [api.properties] cannot be opened because it does not exist

ERROR: org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'api': Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [api.properties] cannot be opened because it does not exist api.properties 파일을 resource폴더에 만들어준 후, 받았던 지도 api key를..

Error 2022.01.19

[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
반응형