我正在努力学习本教程 tutorial在 Intellij IDEA 中,但是当我尝试连接到 h2 数据库时,控制台向我显示错误:
Connection is broken: "java.net.ConnectException: Connection refused: connect: localhost:9092"
java.net.ConnectException: Connection refused: connect.
我需要做什么才能建立连接?
提前致谢
最佳答案
问题出在 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/