Spring
SpringBoot 개발시 H2 Console을 사용하기
SpringBoot로 한창 개발하던 중에, mysql로 Test DB를 구축하기 귀찮아서 H2를 사용해보려고 했다. 근데 이상하게, H2 Console이 작동이 안되는 것... 하루정도 헤맸는데, 결국에는 dependency 문제였다. build.gradle에 아래 처럼 적어주자. dependencies{ compile('org.springframework.boot:spring-boot-devtools') compile ('com.h2database:h2') } org.springframework.boot:spring-boot-devtools를 안적어서 h2가 작동하지 않았었다..
2020. 3. 12. 17:00