JPA
Vs에서 Spring JPA 셋팅하기
hyeonseong
2022. 10. 21. 11:07
1. STS의 propertis > yml로 변경
yml은 propertis보다 경량화가 되어 있고, 실제 만들었을때 가독성이 좋다.
2. yml 설정
server:
port: 8000
servlet:
context-path: /
spring:
datasource:
url: jdbc:h2:mem:test
driver-class-name: org.h2.Driver
username: sa
password:
h2:
console:
enabled: true
jpa:
hibernate:
ddl-auto: create
output:
ansi:
enabled: always
logging:
level:
root: DEBUG