gpt4 book ai didi

intellij-idea - 无法连接到 Intellij 中的 h2 数据库

转载 作者:行者123 更新时间:2023-12-05 01:38:39 24 4
gpt4 key购买 nike

我正在努力学习本教程 tutorial在 Intellij IDEA 中,但是当我尝试连接到 h2 数据库时,控制台向我显示错误:

 Connection is broken: "java.net.ConnectException: Connection refused: connect: localhost:9092" 
java.net.ConnectException: Connection refused: connect.

我需要做什么才能建立连接?

提前致谢

enter image description here

最佳答案

问题出在 url 上,它需要指向您的应用程序的路径:jdbc:h2:file:C:\Users\romul\IdeaProjects\raspberryAwards;MV_STORE=false;AUTO_SERVER=TRUE

关于intellij-idea - 无法连接到 Intellij 中的 h2 数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59429530/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com