[J]赶时髦的人!
关于 JHipster 步骤的 5/16 部分强制要求我选择一种类型的数据库,尽管出于安全原因我正在运行另一个模拟服务项目(使用 gradle 运行的 SpringBoot 应用程序)来访问数据库。
那么,如何才能将它配置到我的新 JHipster 项目中呢?我了解 Liquibase 将在完成设置后包含所有详细信息。
是否可以在第 5/16 步出现提示时完成,还是我应该手动删除条目并添加此项目?
此外,我对如何添加另一个模拟服务一无所知。任何用于添加模拟服务的示例/样本都将受到高度赞赏。谢谢!
最佳答案
你见过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
关于database - 没有数据库的 JHipster 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44615510/