Spring/실전 JPA (강의)
JPA와 DB 설정, 동작확인
dev-note-404
2024. 12. 23. 17:22
728x90
반응형
application.properties를 삭제하고 application.yml 파일을 만들어준다.
spring:
datasource:
url: jdbc:h2:tcp://localhost/~/jpashop;MVCC=TRUE
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
728x90
반응형