Java

h2-console 접속시 404에러 해결방법

Baetab 2023. 5. 21. 00:51

application.yml 


datasource:
url: jdbc:h2:mem:testdb

h2:
console:
enabled: true
path: /h2-console

추가 시켜줬는데 접속이 안된다..?

 

폭풍 구글링을 했는데 h2 버젼문제다 뭔 문제다 다 해봤는데 안된다

예전에 진행할땐 그냥 되었던것 같은데 뭐가 문제일까 

약 1시간 이상 삽질을 했다

 

gradle 로 빌드했다면

build.gradle 에 dependencies 에

implementation 'org.springframework.boot:spring-boot-devtools'

요거 한줄만 추가 시켜주니 쉽게 해결...

 

난 여태까지 뭐 한걸까..?