Spring Boot and H2 Magic

Words
33
Reading
1 min
Listen
Play
8y

H2는 H2 console 이라고 하는 web interface 를 제공한다.

# Enabling H2 Console
  h2:
    console:
      enabled: true
      settings:
        web-allow-others: true


web-allow-others 옵션의 경우는 springboot application을 docker 로 구동했을 경우 remote server 에서 H2 console 에 접속하는 것을 허락한다.

console

jdbc:h2:mem:testdb

임에 유의하자.

Spring Boot and H2 Magic | Ecency