Jhipster 4.3.0的Microservice后端项目不创建用户表

Jhipster 4.3.0的Microservice后端项目不创建用户表,jhipster,Jhipster,使用Jhipster 4.3.0的微服务后端项目不会创建用户表(jhi_用户、jhi_授权、jhi_用户授权),只会创建(jhi_持久性审计事件、jhi_持久性审计事件数据) Here is the result of command: yo jhipster:info Welcome to the JHipster Information Sub-Generator ##### **JHipster Version(s)** ``` `enter code here`D:\.....\gi

使用Jhipster 4.3.0的微服务后端项目不会创建用户表(jhi_用户、jhi_授权、jhi_用户授权),只会创建(jhi_持久性审计事件、jhi_持久性审计事件数据)

Here is the result of command: yo jhipster:info  
Welcome to the JHipster Information Sub-Generator
##### **JHipster Version(s)**
```
`enter code here`D:\.....\git\dolly-ms-app-consul\dolly-backend
`-- generator-jhipster@4.3.0
### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**
```yaml
{
  "generator-jhipster": {
    "promptValues": {
      "packageName": "com.mycompany.myapp",
      "nativeLanguage": "fr"
    },
    "jhipsterVersion": "4.3.0",
    "baseName": "dollybackend",
    "packageName": "com.mycompany.myapp",
    "packageFolder": "com/mycompany/myapp",
    "serverPort": "8081",
    "authenticationType": "jwt",
    "hibernateCache": "hazelcast",
    "clusteredHttpSession": false,
    "websocket": false,
    "databaseType": "sql",
    "devDatabaseType": "mysql",
    "prodDatabaseType": "mysql",
    "searchEngine": false,
    "messageBroker": false,
    "serviceDiscoveryType": "consul",
    "buildTool": "maven",
    "enableSocialSignIn": false,
    "jwtSecretKey": "aa600103f58d769cb4077acccbf8bdfc276b0eb2",
    "enableTranslation": true,
    "applicationType": "microservice",
    "clientPackageManager": "yarn",
    "testFrameworks": [
      "gatling",
      "cucumber"
    ],
    "jhiPrefix": "jhi",
    "skipClient": true,
    "skipUserManagement": true,
    "nativeLanguage": "fr",
    "languages": [
      "fr",
      "en"
    ]
  }
}
```
##### **Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**

Client.json
```yaml
{
    "fluentMethods": true,
    "relationships": [],
    "fields": [
        {
            "fieldName": "idClient",
            "fieldType": "BigDecimal",
            "fieldValidateRules": [
                "required"
            ]
        },
        {
            "fieldName": "numeroCniClient",
            "fieldType": "BigDecimal",
            "fieldValidateRules": [
                "required"
            ]
        },
        {
            "fieldName": "dateNaisClient",
            "fieldType": "LocalDate",
            "fieldValidateRules": [
                "required"
            ]
        },
    ],
    "changelogDate": "20170511190126",
    "javadoc": "Customer entity.\n@author The JHipster team.",
    "entityTableName": "client",
    "dto": "mapstruct",
    "pagination": "pager",
    "service": "serviceImpl"
}

CompteBancaire.json    ```yaml    {…}

Transaction.json   ```yaml   {….}

TypeCompteBancaire.json   ```yaml   {….}

TypeTransaction.json   ```yaml   {….}
```
##### **Browsers and Operating System**
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

git version 2.12.2.windows.2
node: v7.3.0
npm: 3.10.10
bower: 1.8.0
gulp:[09:46:49] CLI version 3.9.1
yarn: 0.23.4
Docker version 17.03.1-ce, build c6d412e
docker-compose version 1.11.1, build 7afaa436

使用jhipster微服务,您的用户不会存储在每个微服务中。它们应该存储在一个微服务中,并通过标识符松散地引用。请注意,您的输出已经完成

“skipClient”:正确, “技能管理”:真的吗


这将是一个后端微服务,如果您的微服务需要用户,它的标识符可以在JWT中找到,JWT作为授权头传递,并且(我认为)在您的spring security principal中设置。

感谢您的快速反应。由于我只有一个微服务,我可以将“skipUserManagement”设置为false以允许liquibase创建用户表吗?如果你只有一个微服务,你不应该选择微服务选项,而应该选择monolith。这将为您提供开箱即用的用户管理。我希望保留微服务体系结构,因为以后我将拥有多个微服务。我可以为accout management microservice设置skipUserManagement:false,为business microservice设置skipUserManagement:true吗?谢谢您的链接。我已经阅读了本教程,但由于演示者既不显示.yo-rc.json文件也不显示jdl文件,所以我的问题仍然存在。例如,我可以拥有一个带有“skipUserManagement”的用户微服务:false;skipUserManagement设置为true并最终设置为网关的图书服务?我刚刚在JHipster微服务体系结构的某个地方读到,用户实体位于网关或UAA服务上。