`{
"generator-jhipster": {
"promptValues": {
"packageName": "com.xyz.service",
"nativeLanguage": "en"
},
"jhipsterVersion": "5.0.0-beta.3",
"applicationType": "microservice",
"baseName": "MicroServiceStarterKit",
"packageName": "com.xyz.service",
"packageFolder": "com/xyz/service",
"serverPort": "8082",
"authenticationType": "jwt",
"cacheProvider": "hazelcast",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "postgresql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSwaggerCodegen": false,
"jwtSecretKey": "token",
"enableTranslation": false,
"testFrameworks": [],
"jhiPrefix": "jhi",
"nativeLanguage": "en",
"languages": [
"en"
],
"clientPackageManager": "yarn",
"skipClient": true,
"skipUserManagement": true
}
}`
当我运行./mvnw命令时,它表明应用程序正在运行。网址http://localhost:8082无法访问,并引发404错误。当我将serviceDiscoveryType属性用作eureka时,它可以正常工作,并且index.html打开
答案 0 :(得分:2)
在微服务中禁用服务发现时,微服务使用上下文路径。就您而言,微服务将在以下位置提供: