spring cloud ouath2中的資源伺服器
阿新 • • 發佈:2021-02-10
技術標籤:javaspringspring boot區塊鏈zookeeper
1、模組結構
四個模組
① admin——後臺管理模組
② core——所有模組都能使用的工具類,常用類
③ parent——maven的父模組,所有專案的依賴都可以提到parent中統一依賴配置
④ rest——提供對接服務端介面的支援,利用jwt token鑑權機制,給予客戶端的訪問許可權,傳輸資料用md5加密
2、包結構
├─main │ │ │ ├─java │ │ │ │ │ ├─com.stylefeng.guns----------------專案主程式碼 │ │ │ │ │ │ │ ├─common----------------專案公用
的部分(業務中經常呼叫的類,例如常量,異常,實體,註解,分頁類,節點類) │ │ │ │ │ │ │ ├─config----------------專案配置程式碼(例如mybtais-plus配置,ehcache配置等) │ │ │ │ │ │ │ ├─core----------------專案執行的核心依靠(例如aop日誌記錄,攔截器,監聽器,guns模板引擎,shiro許可權檢查等) │ │ │ │ │ │ │ ├─modular----------------專案業務程式碼 │ │ │ │ │ │ │ ├─GunsApplication類----------------以main方法啟動springboot的類 │ │ │ │ │ │ │ └─GunsServletInitializer類----------------用servlet容器啟動springboot的核心類 │ │ │ │ │ └─generator----------------mybatis-plus Entity生成器 │ │ │ ├─resources----------------專案資原始檔 │ │ │ │ │ ├─gunsTemplate----------------guns程式碼生成模板 │ │ │ │ │ ├─application.yml----------------springboot專案配置 │ │ │ │ │ └─ehcache.xml----------------ehcache快取配置 │ │ │ └─webapp----------------web頁面和靜態資源存放的目錄