본문 바로가기

개발 에러

톰캣 에러 톰캣 실행 시 에러 1. 더블클릭 2. Modules 탭으로 아래 탭부분에 Modules부분을 누른다. 보면 서로 다른 프로젝트가 '/hotel'이라는 같은 Path명으로 등록 되어있는 것을 알 수 있다. 둘 중 하나를 지우던가, Edit를 눌러 Path명을 바꿔주던가 한다. 나는 귀찮아서 지금 사용할 프로젝트만 남기고 그냥 Remove 한다. (프로젝트가 지워지는게 아니라, 톰캣에 등록했다는 것만 지워지는 것이라 프로젝트에는 아무 문제 없다.) 더보기
*2 절대 경로 /var/lib/tomcat8/webapps/bookPage/pds/productImage (리눅스기준) String path = application.getRealPath("fileFolder"); String path = request.getSession().getServletContext().getRealPath("fileFolder"); java 에서 경로 구분자 표시 알아서 자동으로 인식하는 방법 윈도우 예) c:\temp\... 리눅스 예) /home/yangyag/.. 이렇게 윈도우 환경과 리눅스(유닉스) 환경에서 사용하는 경로의 구분자 값이 다르다. 보통 개발은 윈도우 환경에서 하고 실제 운영은 리눅스(유닉스) 환경에서 하는 경우가 많아 소스 상에서 반영시에는 경로를 바꿔주는 불.. 더보기
3차 프로젝트 개념정리 [2019-11-20~2019-12-20] HashMap 개념 HashMap은 1차원적인 배열을 가지는 List, Set과는 달리 2차원 배열의 형태를 가져 키 값으로 데이터에 접근한다. key와 value를 쌍으로 저장하는 자료구조로 다른 언어에서는 Dictionary 라고 하기도 한다. return Type Method and Description boolean containsKey(Object key) Returns true if this map contains a mapping for the specified key. boolean containsValue(Object value) Returns true if this map maps one or more keys to the specified value. Set keySet() Retur.. 더보기
org.apache.ibatis.reflection.ReflectionException cmd창에서 insert시켰는데 STS에서 계속 select해오는거 값 못받아와서 의아해하다가....... commit안시킨거였음..............5시간 넘게 걸렸는데.. 나는 커밋 바보가 틀림 없다 심각: Servlet.service() for servlet [appServlet] in context with path [/hotel] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for prope.. 더보기