【问题标题】:JHipster app with no database没有数据库的 JHipster 应用程序
【发布时间】:2017-06-18 13:30:37
【问题描述】:

[J]赶时髦的人!

关于 JHipster 步骤的 5/16 部分强制要求我选择一种数据库类型,尽管出于安全原因,我正在运行另一个模拟服务项目(使用 gradle 运行的 SpringBoot 应用程序)来访问数据库。

那么,如何将它配置到我的新 JHipster 项目中?我了解 Liquibase 将在完成设置后包含所有详细信息。

可以在第 5/16 步出现提示时完成,还是应该手动删除条目并添加此项目?

另外,我对如何添加另一个模拟服务一无所知。任何用于添加模拟服务的示例/示例都将受到高度赞赏。谢谢!

【问题讨论】:

    标签: database gradle spring-boot service jhipster


    【解决方案1】:

    您是否看过 JHipster 微服务架构 here 以及这个 Github issue(功能请求)。

    考虑到这些,您应该使用具有选择能力的微服务:

    ➜  myapp jhipster
    Running default command
    Executing jhipster:app
    
            ██╗ ██╗   ██╗ ████████╗ ███████╗   ██████╗ ████████╗ ████████╗ ███████╗
            ██║ ██║   ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗
            ██║ ████████║    ██║    ███████╔╝ ╚█████╗     ██║    ██████╗   ███████╔╝
      ██╗   ██║ ██╔═══██║    ██║    ██╔════╝   ╚═══██╗    ██║    ██╔═══╝   ██╔══██║
      ╚██████╔╝ ██║   ██║ ████████╗ ██║       ██████╔╝    ██║    ████████╗ ██║  ╚██╗
       ╚═════╝  ╚═╝   ╚═╝ ╚═══════╝ ╚═╝       ╚═════╝     ╚═╝    ╚═══════╝ ╚═╝   ╚═╝
    
                                https://jhipster.github.io
    
    Welcome to the JHipster Generator v4.5.4
    Documentation for creating an application: https://jhipster.github.io/    creating-an-app/
    Application files will be generated in folder: /Users/edmond/Documents/dev/java/    myapp
    ? (1/16) Which *type* of application would you like to create? Microservice     application
    ? (2/16) What is the base name of your application? myapp
    ? (3/16) As you are running in a microservice architecture, on which port would     like your server to run? It should be unique to avoid port conflicts. 8081
    ? (4/16) What is your default Java package name? com.company
    ? (5/16) Do you want to use the JHipster Registry to configure, monitor and scale     your microservices and gateways? Yes
    ? (6/16) Which *type* of authentication would you like to use? JWT authentication (    stateless, with a token)
    ? (7/16) Which *type* of database would you like to use? 
    ❯ No database 
      SQL (H2, MySQL, MariaDB, PostgreSQL, Oracle) 
      MongoDB 
      Cassandra
    

    【讨论】:

    • 抱歉耽搁了。确实很有帮助。谢谢你告诉我。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-11
    相关资源
    最近更新 更多