목록공부/Spring (6)
컴퓨터는 잘못이 없다..
[리다이렉트 이동] 웹브라우저에게 새로운 경로로 요청을 다시하라고 응답하는게 리다이렉트 이동이다. 스프링에서 리다이렉트 응답을 할 때는 view page 정보를 "redirect:컨텍스트 경로를 제외한 절대경로"와 같이 작성하면 된다. (참고)컨텍스트 경로는 spring03임) ModelAndView객체도 같다. mView.setView("redirect: 경로"); @RequestMapping("/friend/delete") // .do생략함 public String delete(HttpServletRequest request) { //삭제할 번호 int num=Integer.parseInt(request.getParameter("num")); System.out.println(num+" 번 친구의 정..
#참고 링크 1. spring tiles 설명1 : https://epthffh.tistory.com/entry/스프링-타일즈-Spring-Tile-설정해보기 2. spring tiles 설명2 : https://baessi.tistory.com/2 3. spring tiles 설명3 : http://jmlim.github.io/spring/2019/02/08/spring-boot-tiles/ 4. spring tiles 설명4(spring boot) : Tiles - JAVA파일로 쉽게 설정하기 [Spring Boot] :: 교실 (tistory.com) 5. spring tiles 설명5 : tiles 설정하기 [Spring] :: 교실 (tistory.com) 6. spring tiles 설명6 :..

#데모 프로젝트 생성하고 Hello World 띄워보기 1. spring initializr에서 데모 프로젝트 생성하기 2. 코드 수정하기 +위 과정에서 생긴 오류1 └해결 방법 아래 Gradle을 이렇게 바꾸어주었다. +위 과정에서 생긴 오류2 └해결 방법 처음엔 아래 링크로 시도했으나 안돼서 localhost:8080 접속시 로그인 뜰 때 or Port 8080 required by Tomcat v9.0 Server at localhost is already in use. (velog.io) localhost:8080 접속시 로그인 뜰 때 or Port 8080 required by Tomcat v9.0 Server at localhost is already in use. localhost:8080 ..

*cpath = ${pageContext.request.contextPath } 를 의미한다. *이미지 참고하기 case1 case1 webapp/WEB-INF/views/cafe/list.jsp 에서 webapp/WEB-INF/views/cafe/private/update_form.jsp 로 이동하고자 할 때 [in jsp] 상대경로로 요청할 때 : private/updateform.do //두 jsp파일이 같은 cafe폴더하위에 존재한다. 절대경로로 요청할 때 : cpath/cafe/private/update_form.do - .do 요청을 했으므로 dispatcher servlet을 거쳐간다. - 절대경로에서 cpath/ 에서 /는 views를 의미한다. [in Controller] RequestM..
테이블 & 시퀀스 생성 쿼리문 drop table ebd_report_cmt; drop table ebd_report_heart; drop table ebd_report; drop table ebd_episode_cmt; drop table ebd_episode_heart; drop table ebd_episode; drop table ebd_wording_heart; drop table ebd_wording; drop table ebd_market_cmt; drop table ebd_market_heart; drop table ebd_market; drop table ebd_file_cmt; drop table ebd_file_heart; drop table ebd_file; drop table ebd..