jhipster / spring启动-尝试代理请求时发生错误

时间:2018-06-20 15:58:30

标签: node.js spring security jhipster

当我尝试运行我的jhipster生成的react webapp时,出现一堆nodejs错误。我正在macosnode 10.4.1yarn 1.7.0上运行此项目。这是确切的错误:

[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /management/info from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /management/info from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

我的计算机可能发生了某些问题。...有什么想法吗?

1 个答案:

答案 0 :(得分:3)

此错误意味着browsersync / webpack无法连接到端口8080上用于代理API调用的后端Java:在执行“纱线启动”之前,Spring Boot应用程序必须正在运行。您必须同时运行“ ./mvnw”和“纱线启动”。参见documentation和webpack / webpack.dev.js文件