【问题标题】:create app on Jhipster using java7?使用 java7 在 Jhipster 上创建应用程序?
【发布时间】:2017-12-18 06:54:38
【问题描述】:

我正在尝试使用 jhipster,到目前为止,我已经了解了它在 java8 上的工作方式,我什至找到了一个带有 java7 的示例 repo,它肯定是 java 8 (https://github.com/jhipster/jhipster-sample-app-java7)。

我想知道是否有任何方法可以生成使用 java7 运行的应用程序?我知道 jhipster 已弃用,但似乎如果我可以运行 jhipster v 1.7.0 我可以做到,知道怎么做吗?

到目前为止,这就是 jhipster -help 显示的内容

C:\Users\user>jhipster -help

  Usage: jhipster [command] [options]


  Commands:

    app                       Create a new JHipster application based on the selected options
    aws                       Deploy the current application to Amazon Web Services
    ci-cd                     Create pipeline scripts for popular Continuous Integration/Continuous Deployment tools
    client                    Create a new JHipster client-side application based on the selected options
    cloudfoundry              Generate a `deploy/cloudfoundry` folder with a specific manifest.yml to deploy to Cloud Foundry
    docker-compose            Create all required Docker deployment configuration for the selected applications
    entity [name]             Create a new JHipster entity: JPA entity, Spring server-side components and Angular client-side components
    export-jdl [jdlFile]      Create a JDL file from the existing entities
    heroku                    Deploy the current application to Heroku
    import-jdl [jdlFiles...]  Create entities from the JDL file passed in argument
    info                      Display information about your current project and system
    kubernetes                Deploy the current application to Kubernetes
    languages [languages...]  Select languages from a list of available languages. The i18n files will be copied to the /webapp/i18n folder
    openshift                 Deploy the current application to OpenShift
    rancher-compose           Deploy the current application to Rancher
    server                    Create a new JHipster server-side application
    service [name]            Create a new Spring service bean
    upgrade                   Upgrade the JHipster version, and upgrade the generated application
    completion                Print command completion script

  Options:

    -h, --help     output usage information
    -d, --debug    enable debugger
    -V, --version  output the version number

【问题讨论】:

    标签: java jhipster


    【解决方案1】:

    您指的是一个已有 2 年历史的项目示例。当前版本的 JHipster 4.x 需要 JDK 8,无法使用它生成与 JDK 7 兼容的项目。

    唯一的解决方案是安装一个过时的 JHipster 版本,比如 2.22.0,它是用于生成这个 JDK 7 示例项目的版本:

    npm install -g generator-jhipster@2.22.0
    

    然后按照此版本文档的说明进行操作:http://www.jhipster.tech/documentation-archive/v2.22.0/

    【讨论】:

      猜你喜欢
      • 2017-11-11
      • 1970-01-01
      • 1970-01-01
      • 2018-04-15
      • 2020-08-03
      • 1970-01-01
      • 2015-10-18
      • 2018-06-23
      • 2018-01-31
      相关资源
      最近更新 更多