![](/img/trans.png)
[英]springboot h2 fails to create db and to login into h2-console
[英]No able to login in h2-console using inline memory database
嘗試在屬性文件中使用以下配置。
spring.datasource.url=jdbc:h2:mem:home
spring.h2.console.enabled=true
server.port=8082
通過spring.h2.console.enabled
檢查 h2 啟用的應用程序啟動日志
例如: H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:home'
H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:home'
打開url: http://localhost:8082/h2-console
驗證 jdbc url,並將其更正為屬性文件中提到的並顯示在日志中。
jdbc:h2:mem:home
測試連接。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.