2017-06-18 20 views
0

[J] Hipsters!没有数据库的JHipster应用程序

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

那么,怎样才能将它配置到我的新JHipster项目中呢?我了解Liquibase将在完成设置后包含所有细节。

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

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

回答

0

你见过JHipster微服务架构hereGithub 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 
+1

道歉的延迟。确实,这很有帮助。谢谢你让我知道。 – Sandy

相关问题