[英]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.