gpt4 book ai didi

java - 生成的 jhipster 项目出现错误

转载 作者:行者123 更新时间:2023-12-02 12:35:46 24 4
gpt4 key购买 nike

我已经生成了具有以下设置的新 jhipster 项目。尝试登录管理屏幕时出现错误登录失败!请检查您的凭据并重试。命令行显示以下错误。

[HPM] 尝试将请求/api/profile-info 从 localhost:9060 代理到 http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/错误.html#errors_common
_系统_错误)

我正在使用generator-jhipster@4.6.1。

使用 jhipster 配置

{
"generator-jhipster": {
"promptValues": {
"packageName": "com.ae"
},
"jhipsterVersion": "4.6.1",
"baseName": "ex",
"packageName": "com.ae",
"packageFolder": "com/ae",
"serverPort": "8080",
"authenticationType": "jwt",
"hibernateCache": "ehcache",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "mysql",
"prodDatabaseType": "mysql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSocialSignIn": false,
"jwtSecretKey": "replaced-by-jhipster-info",
"clientFramework": "angularX",
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [
"gatling"
],
"jhiPrefix": "jhi",
"enableTranslation": false
}
}

环境和工具

Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

git version 2.7.4

node: v6.11.1

npm: 5.0.3

yeoman: 2.0.0

yarn: 0.27.5

最佳答案

localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) 

这意味着 webpack-dev-server 无法连接到您的 java 应用程序来代理所有 API 调用,因此您可能只运行了 yarn start 并忘记使用 mvnw< 运行 java 应用程序。请参阅documentation

关于java - 生成的 jhipster 项目出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45164507/

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