【发布时间】:2020-10-08 09:58:45
【问题描述】:
我启动了一个新的 spring-boot。添加了一些启动器 jpa,网络,h2。 在 src/main/resources 中的 application.properties
spring.h2.console.enabled=true
spring.datasource.platform=h2
spring.datasource.url=jdbc:h2:mem:navin
当我尝试连接时显示此错误,请帮助
【问题讨论】:
-
当前,您正在尝试连接到基于文件的 DB
~/test。在 H2-Console 中使用属性中定义的正确 JDBC URL:jdbc:h2:mem:navin -
非常感谢,我浪费了 3 个小时,现在成功了
标签: java spring-boot h2