基於Spring Boot的微服務開發平臺

介紹

h-cloud是一個基於OpneJdk11,Spring Cloud Greenwich.M3,Spring Boot 2.1.0.RELEASE 的學習型微服務開發平臺, 其中,Eureka作為註冊中心,Spring Cloud Gateway 網關, Spring Cloud Config 配置中心,Spring Oauth統一認證中心。 前端採用經典模塊化開發框架LayUI,Nginx 路由轉發做前後端分離。

基於Spring Boot的微服務開發平臺

當前架構

  • 基於Spring Boot 2.1.0.RELEASE
  • 基於Spring Cloud Greenwich.M3
  • 網關 Spring Cloud Gateway
  • 註冊中心 Eureka
  • 認證方式 Spring Security oAuth
  • 持久層採用Spring Data JPA
  • 使用nginx進行前後端分離

當前功能

  • 用戶管理
  • 權限管理(權限控制到按鈕)
  • 統一認證登錄(目前使用jwt)
  • 角色管理

未來功能

  • 統一日誌記錄
  • 社交登錄功能
  • 單點登錄接口
  • 多租戶
  • 動態路由
  • 文件系統(七牛,阿里)
  • 分佈式任務調度
  • 最終一致性事務
  • swagger文檔整合
  • Spring Boot Admin 服務監控
  • pingpoint 鏈路追蹤
  • 代碼生成器

安裝教程

  1. 下載項目
  2. 導入IDEA,準備好JDK11
  3. 安裝gradle,build
  4. 執行buildJar任務生成jar包
  5. 準備數據庫等環境
  6. 運行

項目地址

  • 在線體驗:cloud.hepg.net 用戶名:test 密碼:123456
  • github:https://gitee.com/HePanGui/h-cloud


分享到:


相關文章: