Skip to content

应用网关配置说明

所有应用涉及的共同配置请参考通用配置,不再重复说明,这里仅列出不同的配置项。

1. Which type of application would you like to create?

此项中选择Gateway application,表示生成网关应用。

2. As you are running in a microservice architecture, on which port would like your server to run?

指定网关服务器端口,默认8080,注意不要重复。

3. Which service discovery server do you want to use?

选择微服务注册中心。JHipster官方支持Consul和JHipster Registry,默认使用Consul。

4. Which cache do you want to use? (Spring cache abstraction)

网关应用默认不使用Cache。

BegCode调整后的网关没有什么业务内容,所以不需要选择。JHipster原来在网关应用上有用户信息管理等,BegCode将其移入微服务。

5. Which Front Or Back End would you like to use for your application?

网关部分支持生成后端应用和整个项目的前端应用。

6. Which type of user id type would you like to use?

微服务应用中注意所有涉及User的ID类型时保持配置一致。

7. Do you want to enable microfrontends?

是否启用微服务,请不要启用,BegCode未进行相应的适配。