jhipster初探1
Contents
jhipster是一种生产微服务的脚手架,最近想入门spring cloud,但很多组建无从下手,正好找到一个脚手架,这样快速搭建,才能快速上手。
jhipster官网上的核心工作
creating an application
创建应用类型4种
- Monolithic application: this a classical, one-size-fits-all application. It’s easier to use and develop, and is our recommended default.
- Microservice application: in a microservices architecture, this is one of the services.
- Microservice gateway: in a microservices architecture, this is an edge server that routes and secures requests.
- JHipster UAA server: in a microservices architecture, this is an OAuth2 authentication server that secures microservices. Refer to the JHipster UAA documentation for more information.
这里将应用简单的打包成4种,第一种是单体应用,第二种是微服务应用,第三种是微服务的网关,第四种是认证授权服务器。将服务抽象成这四种。
4种安全的方式
- JSON Web Tokens (JWT)
- Session-based authentication
- OAuth2 and OpenID Connect
- JHipster User Account and Authentication (UAA)
creating an entity
生成字段,有自定义的UML等,可以生成字段脚本等,可以验证字段等
creating a spring controller
生成访问路由,rest controller还有api swagger等
creating a spring service
生成后端服务,提供服务
微服务
主要组件的包含技术
gateway:Zuul,Ribbon,Access-controll with UAA,front-end
register:Eureka server,Config server
microservice:spring boot
UAA