1. Spring Boot 프로젝트 생성
2. Lombok 설정
3. H2 Database 설치
4. JPA와 DB 설정 (application.yml)
spring:
datasource:
url: jdbc:h2:tcp://localhost/~/jpashop;
username: sa
password:
driver-class-name: org.h2.Driver
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
# show_sql: true
format_sql: true
logging:
level:
org.hibernate.SQL: debug
org.hibernate.type: trace
728x90
728x90
'Spring > 실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발' 카테고리의 다른 글
1. 강의 소개 (1) | 2022.03.21 |
---|