https://intheham.tistory.com/98 [Spring JPA] 이미지 파일 1개 업로드 1. application.properties에 #multipart 추가하기 # port server.port=8081 # JSP view spring.mvc.view.prefix=/WEB-INF/views/ spring.mvc.view.suffix=.jsp # oracle set spring.datasource.driver-class-name=oracle.jdbc.OracleDriver spring.datasource.url=jdbc: intheham.tistory.com 1. Entity에 업로드하고 싶은 이미지 개수만큼 멤버변수 추가 (이미지 경로 저장) public class Store { @..
https://intheham.tistory.com/67 include 지시자 및 액션 태그를 활용한 index.jsp 복습 ※ 웹뷰(JSP)가 컨트롤러(Servlet)에 요청 보내는 법 * 동기 요청 (페이지 이동) - intheham.tistory.com 작동 방식이나 jsp 표현 방식은 이전과 같다. 서버 전송 방식이 Servlet 에서 JPA Controller 로 변했을 뿐! index.jsp header.jsp 함함 샵 ~ hello ${sessionScope.loginId} ~ 회원가입 로그인 내정보보기 로그아웃 회원탈퇴 cmenu.jsp 구매자 메뉴 구매내역 상품목록 smenu.jsp 판매자 메뉴 상품등록 상품목록 ShopmemberController (1) 모든 메서드의 return 경로..
1. JPA 환경 설정 (1) 프로젝트 생성할 때 Spring Data JPA 의존성 주입하기~ (2) application.properties 에 jpa 코드 추가하기 #jpa spring.jpa.generate-ddl=true spring.jpa.database=oracle spring.jpa.show-sql=true spring.jpa.generate-ddl=true // 자동으로 테이블 생성해줌. 만약 vo 코드를 수정하면 테이블을 자동으로 수정해주지 않고~! 테이블을 새로 생성해줌. 계속 테이블이 생성되는 것이 번거롭다면 false로 해라~ spring.jpa.database=oracle // db 종류 spring.jpa.show-sql=true // sql 쿼리문이 실행되면 실행된 쿼리문이 ..