我正在使用jhipster应用程序
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.labkit.sci.mycloud",
"nativeLanguage": "en"
},
"jhipsterVersion": "5.5.0",
"applicationType": "monolith",
"baseName": "mycloudApp",
"packageName": "com.labkit.sci.mycloud",
"packageFolder": "com/labkit/sci/mycloud",
"serverPort": "8383",
"authenticationType": "oauth2",
"cacheProvider": "no",
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "mysql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "gradle",
"enableSwaggerCodegen": false,
"clientFramework": "angularX",
"useSass": true,
"clientPackageManager": "npm",
"testFrameworks": [],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "en",
"languages": [
"en",
"de"
]
}
}
我已将webpack.common.js中的SERVER_API_URL配置为
SERVER_API_URL:
'http://localhost:9000/'
但是JhiLanguageService始终指向相对路径
我还在mycloud-app \ src \ main \ webapp \ app \ app.constants.ts中配置了
export const SERVER_API_URL = 'http://localhost:9000/';
仍然将网址指向相对路径 http://localhost:9000/site/product/i18n/en.json?buildTimestamp=1540574017051
其余的api调用都使用SERVER_API_URL,例如
是错误还是在哪里配置语言服务路径。