application.yml 파일에
spring:
h2:
console:
enabled: true
path: /h2-console
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:testdb
username: sa
password:
이와 같이 연결하고 http://localhost:8080/h2-console로 접속한 후
728x90
반응형
'🔻Back-End > Spring' 카테고리의 다른 글
[Spring] MySQL, MariaDB, H2 DB 연결하는 application.yml 설정 (0) | 2023.01.07 |
---|---|
[Spring] JPA ddl-auto 옵션 정리 (0) | 2023.01.06 |
[Spring] Spring 프로젝트 빌드하기 (0) | 2022.12.24 |
[Spring error] Column '' cannot be null (0) | 2022.12.22 |
[Spring error] @Value Cannot find method 'value' (0) | 2022.12.09 |