原创 代碼詳解設計模式

寫在前面 後面小博會整理成專欄並詳細解釋,目前僅做緩存用。 設計模式 工廠模式 public interface Shape { void draw(); } public class Circle implements Sh

原创 代碼詳解設計模式彙總

待整理 篇章 小博博客地址

原创 Spring Cloud學習紀要彙總

小博Spring Boot快速入門GitChat https://gitbook.cn/gitchat/activity/5a444c451f6ee91a25846ac1 小博Spring Cloud學習紀要 篇章 小博博客地址

原创 Spring Cloud 學習紀要八:Hystrix

Spring Cloud Hystrix:熔斷降級   Spring Cloud Hystrix是Netflix開源的一個延遲和容錯庫,用於隔離訪問遠程系統、服務或第三方庫,防止級聯失敗,從而提高系統的可用性與容錯性。 開發環境

原创 Spring Cloud 學習紀要九:Sleuth

Spring Cloud Sleuth:鏈路跟蹤   Spring Cloud Sleuth是一種分佈式追蹤解決方案,它兼容Zipkin。微服務架構由於服務單元數量衆多、調用關係雜亂、業務複雜,如果出現了錯誤和異常很難去定位,所以微服

原创 Spring Cloud 學習紀要七:Zuul

Spring Cloud Zuul:統一網關   Spring Cloud Zuul 提供動態路由,監控,彈性,安全等邊緣服務,將細粒度的服務組合起來提供一個粗粒度的服務,所有請求都導入一個統一的入口,那麼整個系統只需要暴露一個服務,

原创 Spring Cloud 學習紀要五:Bus

Spring Cloud Bus:消息總線   上一篇我們講到統一配置中心Spring Cloud Config,實現了分佈式項目配置文件的統一管理,但是留下了一個問題:修改配置之後如何免重啓自動生效。Spring Cloud Bus

原创 Spring Cloud 學習紀要六:Stream

Spring Cloud Stream:消息驅動   Spring Cloud Stream 是一個構建消息驅動微服務的框架,應用程序通過 input 或者 output 來與 Spring Cloud Stream 中 binder

原创 Spring Cloud 學習紀要四:Config

Spring Cloud Config:配置中心   普通應用中,當一個系統的配置文件發生改變時,需要重啓該服務才能使新配置生效。而Spring Cloud Config可以實現微服務中所有系統配置文件的統一管理,當配置文件發生變化的

原创 Spring Cloud 學習紀要一:Eureka

Spring Cloud Eureka:服務治理   Spring Cloud Eureka是Spring Cloud Netflix服務套件中的一部分,它基於Netflix Eureka做了二次封裝,主要負責完成微服務架構中的服務治

原创 Spring Cloud 學習紀要二:Feign

Spring Cloud Feign:服務通信   Spring Cloud Feign是簡化Java HTTP客戶端開發的工具,它的靈感來自於Retrofit、JAXRS-2.0和WebSocket。接下來將展示一個入門Demo。

原创 Spring Cloud 學習紀要三:Ribbon

Spring Cloud Ribbon:負載均衡   Spring Cloud Ribbon是基於Netflix Ribbon實現的一套客戶端負載均衡的工具。它是一個基於HTTP和TCP的客戶端負載均衡器,它可以通過在客戶端中配置ri

原创 synchronized與static synchronized詳解

synchronized與static synchronized的區別 synchronized是實例鎖,對類的當前實例進行加鎖,防止其他線程同時訪問該實例的所有synchronized塊。 注意這裏是類的當前實例, 類的兩個不

原创 併發編程

/** * 線程池 */ private static final ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1, 10, 0L, Ti

原创 CSDN-markdown

這裏寫自定義目錄標題歡迎使用Markdown編輯器新的改變功能快捷鍵合理的創建標題,有助於目錄的生成如何改變文本的樣式插入鏈接與圖片如何插入一段漂亮的代碼片生成一個適合你的列表創建一個表格設定內容居中、居左、居右SmartyPants