develog

[H2] spring boot 에서 h2 memory db 사용하기 본문

Dev/Spring Boot

[H2] spring boot 에서 h2 memory db 사용하기

냐옴 2019. 12. 13. 14:43

 

application.yml 을 설정한다

spring:
  datasource:
    driver-class-name: org.h2.Driver
    url: jdbc:h2:mem:testdb
    username: sa
    password:
  h2:
    console:
      enabled: true
      path: /h2-console

 

애플리케이션을 실행하고

 

브라우저에서 접속한다

http://localhost:8080/h2-console

 

'Dev > Spring Boot' 카테고리의 다른 글

Spring Boot jar, docker build  (0) 2020.08.06
[spring boot] static file read  (0) 2020.02.13
[spring boot] @SpringBootTest, MockMvc  (0) 2020.02.07
[spring boot] static file  (0) 2019.11.27
[spring boot] jsp  (0) 2019.11.27
Comments