jHipster生成項目架構指南

jhipster【Monolithic application 】創建項目之初要考慮(應用名稱、default Java package name)項目的技術架構。

下面的選項中就是在生成項目時的選項。

一、後端技術

1.1您想要創建哪種類型的應用程序?
應用類型:

  • Monolithic application (recommended for simple projjects)
  • Microservice application
  • Microservice gateway
  • JHipster UAA server (for picroservice OAuth2 authentication)

1.2您想使用Maven或Gradle構建後端嗎? Maven

  • Maven
  • Gradle

1.3您要使用哪種類型的身份驗證? OAuth 2.0/OIDC身份驗證(有狀態,適用於Keycloak和Okta)
認證類型:

  • JWT authentication (stateless, with a token)
  • HTTP Session Authentication (stateful, default Spring Security mechanism)
  • Auth 2.0/ OIDC Authentication (stateful, works with Ke ycloak and Okta)

1.4您要使用哪種類型的數據庫? SQL(H2,MySQL,MariaDB,PostgreSQL,Oracle,MSSQL)

  • SQL (H2, MySQL, MariaDB, PostgresQL, Oracle, MSSQL)

    您想使用哪個 production 數據庫? MySQL

    MysQL / MariaDB / PostgreSQL / Oracle (Please follow our documentation to use the Oracle proprietaru driuer) / Microsoft SQL Server

    您想使用哪個 development 數據庫? H2具有基於磁盤的持久性

    H2 with disk-based persistence / H2 with in-memory persistence / MysQL

  • Mongo DB

  • Cassandra

  • Couchbase

  • No database

二、緩存技術

2.1您想使用Spring緩存抽象嗎?是的,使用Ehcache實現(本地緩存,用於單個節點)

  • Yes, with the Ehcache implementation (local cache, for a single node)
  • Yes, with the Hazelcast implementation (distributed cache, for multiple nodes, supports rate-limiting for gateway applications)
  • [BETA] Yes, with the Infinispan implenentation (hybrid cache, for multiple nodes)
  • Yes, with Memcached (distributed cache)-Warning, when using an sQL database, this will disable the Hibernate 2nd level cache!
  • No - Warning, when using an SQL database, this will disable the Hibernate 2nd level cache!

2.2你想使用Hibernate二級緩存嗎?是

  • Yes
  • No

三、測試(包括監控應用)

3.1除了JUnit和Jest之外,您還想使用哪些測試框架?

  • Gatling
  • Cucumbe
  • Protractor

3.2您是否想使用JHipster Registry來配置,監控和擴展您的應用程序?不

  • NO [當選擇NO時,在下一步程序引導中會增加一個選擇認證方式的引導程序 1.3]
  • Yes [不會有引導程序]

四、前端技術

4.1您想要啓用國際化支持嗎?是
請選擇應用程序的母語:中文(簡體)
請選擇其他語言來安裝 :英語

4.2 您想爲客戶使用哪種 前端框架 *? react/angrala

  • Angular
  • React
  • No client

4.3你想使用Bootswatch主題(https://bootswatch.com/)嗎?Lumen

4.4選擇Bootswatch變體導航欄主題(https://bootswatch.com/)?Primary

五、其他

5.1您還想使用哪些其他技術?使用Elasticsearch的搜索引擎

  • Search engine using Elasticsearch
  • WebSockets us ing Spring Websocket
  • Asynchronous messages using Apache Kafka
  • API first development using OpenAPI-generator

您想從JHipster Marketplace安裝其他生成器嗎?不

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章