我试图在Intellij IDEA中遵循本教程tutorial,但是当我尝试连接到h2数据库时,控制台向我抛出错误:
Connection is broken: "java.net.ConnectException: Connection refused: connect: localhost:9092"
java.net.ConnectException: Connection refused: connect.
建立连接我需要做什么?
预先感谢
答案 0 :(得分:0)
问题出在URL,它需要路径到您的应用程序: jdbc:h2:file:C:\ Users \ romul \ IdeaProjects \ raspberryAwards; MV_STORE = false; AUTO_SERVER = TRUE