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
반응형
'Spring > 실전 JPA (강의)' 카테고리의 다른 글
MVCC=TRUE (0) | 2024.12.24 |
---|---|
Intellij 단축키 만들기 (0) | 2024.12.23 |
H2 Database (1) | 2024.12.23 |
org.springframework.boot:spring-boot-devtools (0) | 2024.12.23 |
thymeleaf viewName 매핑 (0) | 2024.12.23 |