当 jdl 具有用户实体关系时,jhipster 网关应用程序中的 jhipster import-jdl 错误
我使用 jhipster 版本 7.6.0 生成了 Jhipster 网关应用程序。这是我的 yo.rc
{
"generator-jhipster": {
"applicationType": "gateway",
"authenticationType": "jwt",
"baseName": "demo",
"blueprints": [],
"buildTool": "gradle",
"cacheProvider": "no",
"clientFramework": "angularX",
"clientPackageManager": "npm",
"clientTheme": "litera",
"clientThemeVariant": "primary",
"creationTimestamp": 1645612665729,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"devServerPort": 4200,
"dtoSuffix": "DTO",
"enableGradleEnterprise": false,
"enableHibernateCache": false,
"enableSwaggerCodegen": true,
"enableTranslation": false,
"entitySuffix": "",
"jhiPrefix": "jhi",
"jhipsterVersion": "7.6.0",
"jwtSecretKey": "ZGZjMmY2NjBiOGYwNjQxZDE1MzU1MzlkY2VhOWU5ODM0MWFkOWYzZDA2NTcyNTI2ZTgxOTJlYmI2NTY0Y2JjOWNjODdjNWMyNmM4YTZkNTMyNTZhMDhkZTBlNzliYzI5YTE0OWM5ZjExNzc1YjE1YTI5ZWFiNzAzMDVkMTQwYTg=",
"languages": ["en", "fr"],
"messageBroker": "kafka",
"nativeLanguage": "en",
"otherModules": [],
"packageName": "com.demo",
"pages": [],
"prodDatabaseType": "postgresql",
"reactive": true,
"searchEngine": false,
"serverPort": "8080",
"serverSideOptions": ["messageBroker:kafka", "enableSwaggerCodegen:true"],
"serviceDiscoveryType": "eureka",
"skipCheckLengthOfIdentifier": false,
"skipFakeData": false,
"skipUserManagement": false,
"testFrameworks": [],
"websocket": false,
"withAdminUi": true
}
}
我有一个 app-jdl.jdl 文件,其中包含以下内容
entity Blog {
name String required minlength(3)
handle String required minlength(2)
}
relationship ManyToOne {
Blog{user(login)} to User
}
,当我运行 jhipster import-jdl app-jdl.jdl
时,出现以下错误
是什么导致了该问题以及如何解决它?
I have generated a Jhipster gateway application using jhipster version 7.6.0. Here is my yo.rc
{
"generator-jhipster": {
"applicationType": "gateway",
"authenticationType": "jwt",
"baseName": "demo",
"blueprints": [],
"buildTool": "gradle",
"cacheProvider": "no",
"clientFramework": "angularX",
"clientPackageManager": "npm",
"clientTheme": "litera",
"clientThemeVariant": "primary",
"creationTimestamp": 1645612665729,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"devServerPort": 4200,
"dtoSuffix": "DTO",
"enableGradleEnterprise": false,
"enableHibernateCache": false,
"enableSwaggerCodegen": true,
"enableTranslation": false,
"entitySuffix": "",
"jhiPrefix": "jhi",
"jhipsterVersion": "7.6.0",
"jwtSecretKey": "ZGZjMmY2NjBiOGYwNjQxZDE1MzU1MzlkY2VhOWU5ODM0MWFkOWYzZDA2NTcyNTI2ZTgxOTJlYmI2NTY0Y2JjOWNjODdjNWMyNmM4YTZkNTMyNTZhMDhkZTBlNzliYzI5YTE0OWM5ZjExNzc1YjE1YTI5ZWFiNzAzMDVkMTQwYTg=",
"languages": ["en", "fr"],
"messageBroker": "kafka",
"nativeLanguage": "en",
"otherModules": [],
"packageName": "com.demo",
"pages": [],
"prodDatabaseType": "postgresql",
"reactive": true,
"searchEngine": false,
"serverPort": "8080",
"serverSideOptions": ["messageBroker:kafka", "enableSwaggerCodegen:true"],
"serviceDiscoveryType": "eureka",
"skipCheckLengthOfIdentifier": false,
"skipFakeData": false,
"skipUserManagement": false,
"testFrameworks": [],
"websocket": false,
"withAdminUi": true
}
}
I have a app-jdl.jdl file with the following content
entity Blog {
name String required minlength(3)
handle String required minlength(2)
}
relationship ManyToOne {
Blog{user(login)} to User
}
when I run jhipster import-jdl app-jdl.jdl
I get the following error
What is causing the issue and how can I fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的应用程序身份验证类型是
检查这篇文章,jwt 似乎还不支持它
Jhipster - JDL studio - 与用户的关系
your application auth type is
check this post it seems its not supported in jwt yet
Jhipster - JDL studio - relationship to User