JAVA (360) 썸네일형 리스트형 C:\lorem\file\temp\main.png (ÁödµÈ °æ·θ¦ ã; ¼ö), 존재하지않습니다. 해당경로에 지정한 파일이 존재하지않을경우 일어난다. 나의 경우엔 temp파일이없어 일어났다. error setting null for parameter #n Controller에서 (+ mapper, sql.xml) 에서 아직 구현되지않지만 미리 넣어놓은 변수들이 있다면 주석처리해보자. 테이블 값이 null을 허용했으니 괜찮을거라 생각되지만 적절히 구현해놓지않아 받지못한 null값은 에러를 발생시킨다. Servlet life cycle, init, doGet, doPost, destory 서블릿 life cycle init 초기화, 맨 처음 한 번만 호출 public class MyServlet extends HttpServlet { public void init() throws ServletException {// Servlet 초기화 작업 } } doGet 작업 수행, 클라이언트가 get 요청하는 작업을 수행 public class MyServlet extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } } doPost 작업 수행, 클라이언트가 post 요청하는 작업을 수행 public c.. 스프링프레임워크 Property 네임스페이스 이용하기 p 네임스페이스 이용하기 p:변수명-ref="객체이름/아이디" p:변수명="설정할값" Bean의 프로퍼티는 해당 Bean의 속성 값 Property 네임스페이스를 사용하면 Bean의 프로퍼티 값을 XML 파일에서 직접 지정할 수 있다. javax.annotation.Resource import 안될때 pom.xml에 아래의 코드를 추가/수정해보자. javax.annotation javax.annotation-api 1.3.1 java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut allPointcut참조된 포인트컷을 찾을 수 없습니다 Asepectj 로그 버전이 낮다면,1.8.14로 높여보자. org.aspectj aspectjrt 1.8.14 org.aspectj aspectjweaver 1.8.14 runtime folder.delete()안될때, 폴더/하위폴더 삭제 하위파일들이 남아있으면 폴더가 삭제되지않는다. 파일을 삭제하려면 하위폴더삭제후 - 파일을 삭제하는 루트를 거치자. File folder = new File(CURR_IMAGE_REPO_PATH+"\\"+goods_id); try{ while(folder.exists()) { File[] folder_list = folder.listFiles(); for (int j = 0; j < folder_list.length; j++)folder_list[j].delete(); if(folder_list.length == 0 && folder.isDirectory())folder.delete(); } }catch(Exception e) {e.printStackTrace();} H2 database 드라이버 install pom.xml 에 작성 com.h2database h2 1.4.196 이전 1 ··· 29 30 31 32 33 34 35 ··· 45 다음