인메모리

매우 간단함 H2 데이터베이스 기본 설정 spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password= spring.h2.console.enabled=falseH2데이터베이스는 따로 설정하지 않으면, 위의 값이 기본값으로 설정됨 testdb 스키마에 mem(인 메모리 방식)으로 동작하라는 설정 우리는 콘솔이 필요하므로, application.properties에 spring.h2.console.enabled=true만 설정해주면됨 서버를 띄운 후 localhost:8080/h2-console 로 접속하면 위..
깡냉쓰
'인메모리' 태그의 글 목록