728x90
728x90
#이건 주소
spring.datasource.url=jdbc:h2:file:./db/test
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
#이걸 트루로 안해주면 눈으로 확인이 불가
spring.h2.console.enabled=true
#기본 접속 주소가 http://localhost:8080/h2-console인데 이걸 편하게 들어가려고 쓴 거
spring.h2.console.path=/h2-console
#내가 선언한 클래스 구조대로 테이블을 자동 생성해주는 기능의 모드를 설정해주는 거 (만들고 난 후에는 값을 validate로 바꿔서 이미 생성된 애가 맞는지 검증하는 걸로 해줘야 한다.)
spring.jpa.hibernate.ddl-auto=create
728x90
728x90
'데이터베이스 DB > 서버 디비' 카테고리의 다른 글
정규화 디테일 (0) | 2020.08.17 |
---|---|
데이터 비식별화 (0) | 2020.08.16 |
ORM, JPA (0) | 2020.06.04 |
H2 connection (0) | 2020.06.04 |
Spring에 DB Connection하는 방법 (0) | 2020.06.04 |
댓글