1)기본 설정
2) 의존성 추가 (Spring Data JPA, OracleDriver, Thymeleaf, Spring web)
-> 라이브러리 자동으로 다운로드함.
3) 패키지 생성
-domain은 dto와 비슷하다고 생각하기
4) application properties 설정
server.port=8383
#Oracle Connect
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@localhost:1521/xe
spring.datasource.username=scott
spring.datasource.password=tiger
#JPA SQL Show
spring.jpa.show-sql=true
#create Only Developer
spring.jpa.hibernate.ddl-auto=none
spring.jpa.show-sql=true
-> sql 문을 콘솔에서 볼 수 있다
spring.jpa.hibernate.ddl-auto=none
-> ddl 실행여부
'IT > SpringDay' 카테고리의 다른 글
05.JPA③-Member List 조회 (0) | 2022.05.19 |
---|---|
05.JPA②-Member 신규 생성 (0) | 2022.05.19 |
05.JPA 개념 (0) | 2022.05.19 |
02. Spring MVC 게시판 구현⑤ - 답글작성★ (0) | 2022.05.18 |
02.spring 게시판 오류 - java.sql.SQLSyntaxErrorException: ORA-00984: column not allowed here (0) | 2022.05.18 |