2017-06-18 44 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

相關問題