database - 没有数据库的 JHipster 应用程序

标签 database gradle spring-boot service jhipster

[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/

相关文章:

java - Spring-Boot:Mockito Captor:NullPointerException 和 InvalidUseOfMatchersException

gradle - 仅通过gradle下载节点8.17.0(如果系统中未安装该节点)

mysql - derby支持替换成mysql吗?

database - 为什么 UUID 标准很复杂,我应该遵循它们吗?

php - 从 "users"表获取有关我的好友的用户的信息。关系/连接 SQL 表?

android - 如何为我所有的 android 项目设置 gradle 属性?

java - Gradle Artifactory 插件不生成 Pom 文件

java - 线程中的异常 "main"java.time.DateTimeException : Invalid value for MonthOfYear (valid values 1 - 12): 0 when i am using Google Map jar

java - Spring Boot Actuator 添加 X-Frame-Options = DENY 到所有端点(特别是错误端点)

android - 如何打开和编辑作为数据库的dat文件?