본문 바로가기

공부/스프링 부트와 AWS로 혼자 구현하는 웹서비스

[이동욱스프링책]Database "mem:testdb" not found, either pre-create it or allow remote database creation (not recommended in secure environments)

그치 바로되면 재미없지

 

 

실행할때마다 디비주소?가 바뀌기때문에 고정시켜줘야됨?

application.properties에

spring.h2.console.enabled=true
spring.datasource.url=jdbc:h2:mem:testdb

이 두 줄 추가