[英]No able to login in h2-console using inline memory database
I am getting localhost not able to connect after trying to connect through inline db,i am passing correct username password.It was working fine before.Someone else faced this issue?尝试通过内联数据库连接后,我发现本地主机无法连接,我正在传递正确的用户名密码。之前工作正常。其他人遇到过这个问题吗?
Try with the following configurations in the properties file.尝试在属性文件中使用以下配置。
spring.datasource.url=jdbc:h2:mem:home
spring.h2.console.enabled=true
server.port=8082
Check the application startup logs for h2 enable by spring.h2.console.enabled
通过
spring.h2.console.enabled
检查 h2 启用的应用程序启动日志
eg: 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'
H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:home'
Open the url: http://localhost:8082/h2-console打开url: http://localhost:8082/h2-console
Verify the jdbc url, and correct it to as per mentioned in properties file and displayed in logs.验证 jdbc url,并将其更正为属性文件中提到的并显示在日志中。
jdbc:h2:mem:home
Test connection.测试连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.