전체 글

전체 글

    SpringBoot application.properties H2 DB설정

    * H2 Database 파일 속성jdbc:h2:file:~/test * H2 Database 메모리 속성(휘발성)jdbc:h2:mem:test * SpringBoot application.properties DB설정 spring.datasource.url=jdbc:h2:mem:testspring.datasource.username=saspring.datasource.password=spring.datasource.driverClassName=org.h2.Driver * spring.jpa.hibernate.ddl-auto 설정spring.jpa.hibernate.ddl-auto=update create: 기존테이블 삭제 후 다시 생성(DROP + CREATE)create-drop: create와 같으나..