Loading...

Spring / / 2022. 5. 10. 12:08

h2 DB 테스트 연결 코드 yml

반응형
http://localhost:8080/h2-console
server:
  port: 8080
  servlet:
    encoding:
      charset: utf-8
      
spring:
  datasource:
    url: jdbc:h2:mem:test
    driver-class-name: org.h2.Driver
    username: sa
    password: 
  h2:
    console:
      enabled: true
  jpa:
    open-in-view: true
    hibernate:
      ddl-auto: create # create, update, none
      naming:
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
    show-sql: true
  output:
    ansi:
      enabled: always

반응형