Springboot項目學習筆記(三)(1.5-2.0---shangguigu)

緩存

消息隊列

docker安裝rebitMQ

測試

實體類

重點

Springboot集成elasticsearch

測試

測試異步任務

定時任務

定時任務表達式

發送郵件任務

發送複雜消息郵件

報錯是因爲版本太低

修改後可以了

權限配置類

添加依賴

引依賴登錄顯示名字

重點

springboot dubbo zookeeper整合

實現步驟

1,創建兩個項目(一個服務提供者,一個消費者)

2,添加dubbo依賴

3,編寫配置文件

服務提供者

消費者

4,service

服務提供者

消費者

測試

springcloud

(一)eureka註冊

配置

啓動類添加註解

服務註冊(多個服務)

配置

service

controller

消費者

controller

測試結果

熱部署

添加依賴

修改後按下Ctrl+f9生效

監控管理

定製端點

案例地址:

 https://gitee.com/gongdaosong/Springboot-Security.git    https://gitee.com/gongdaosong/springboot-task.git    https://gitee.com/gongdaosong/Spring-bootceshi.git    https://gitee.com/gongdaosong/springboot_weblux_instance.git    https://gitee.com/gongdaosong/springboot217.git    https://gitee.com/gongdaosong/springboot235.git

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章