无法连接到 intellij 中的 Wildfly 服务器

Unable to connect to Wildfly server in intellij

我正在为我的应用程序使用 Wildfly 服务器。我正在 运行 通过 intellij 插件连接此服务器。每当我 运行 这个应用程序时,我都会收到一条错误消息

"Error running 'JBoss 9.0.1.Final': Unable to connect to the localhost:8080"

这是我在 intellij 中的配置。

编辑您的 standalone.xml,将其添加到其中并重试。

此外,请检查您的 Java 版本。 Wildfly 9 使用 Java 7/8,也许你需要降级 Java 版本或更新 Wildfly 到 14 或 15.

<interfaces>
    <interface name="management">
        <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
    </interface>

    <!-- add the code below -->
    <interface name="public">
        <any-address/>
    </interface>
    <interface name="any">
        <any-address/>
    </interface>
</interfaces>

您可以检查 here 每个版本的最佳版本,这样您就可以毫无问题地启动您的服务器。问候。