原创 Spring Cloud Gateway 源碼解析(2) —— 路由

基本組件 路由定位器(RouteDefinitionLocator ) RouteDefinitionLocator 負責讀取路由配置(RouteDefinition ),Gateway實現了多種Locator。 public inte

原创 Spring Cloud Gateway 源碼解析(3) —— Predicate

RoutePredicateFactory  RoutePredicateFactory 涉及到的類在 org.springframework.cloud.gateway.handler.predicate 包下。Spring Cloud

原创 Spring Cloud Gateway 源碼解析(1) —— 基礎

本文章源碼爲2.2.2-release,github:https://github.com/spring-cloud/spring-cloud-gateway/tree/v2.2.2.RELEASE Gateway初始化 啓用Gatewa

原创 Spring Cloud Gateway介紹(二)

Spring Cloud Gateway介紹(一)   全局Filters GlobalFilter與GatewayFilter具有一樣的接口。 這些全局過濾器都有對應的配置類,例如: org.springframework.cloud.

原创 Spring Cloud Gateway介紹(一)

特性 基於 Java 8 編碼 基於 Spring Framework 5 + Project Reactor + Spring Boot 2.0 構建 支持動態路由,能夠匹配任何請求屬性上的路由 支持內置到 Spring Handler

原创 Sentinel 源碼分析(二)

Slot ProcessorSlotChain  public abstract class ProcessorSlotChain extends AbstractLinkedProcessorSlot<Object> { pu

原创 Sentinel 源碼分析(一)

總體邏輯 入口 public enum EntryType { /** * Inbound traffic */ IN("IN"), /** * Outbound traffic

原创 Jenkins Job Buidler

目錄 Job Definitions Job 參數 Job Template Template變量的默認值 Project Views View Template Macro Folders Item ID’s Raw config De

原创 neo4j整理

語法 數據庫 列出所有數據庫 :dbs 選擇數據庫 :use neo4j 一個實例就只能有一個數據庫。 如果節點分應用,則通過label區分   學習 :play start  查詢 match(n:bot) return

原创 模型評估之混淆矩陣

在前面的文章中我們講到了迴歸模型和分類模型的評估指標,區分了準確率和精確率的區別,並且比較了精確率和召回率內在的聯繫。本篇文章我們再來學習另外一個評估方法,即混淆矩陣(confusion_matrix)。 在講矩陣之前,我們先複習下之前在

原创 mongodb語法與spring實現

mongodb語法 參考文檔:https://docs.mongodb.com/manual/reference/   BSON Types BSON Type有2種標識符,整形和字符串 類型 數值 字符串 說明   Double 1 “

原创 Spring Environment

Environment是當前應用運行環境的公開接口,主要包括應用程序運行環境的兩個關鍵方面:配置文件(profiles)和屬性(properties)。 profiles: profile配置是一個被命名的、bean定義的邏輯組,這些be

原创 Spring @Import源碼解析

在Spring boot中常用到@Import,允許通過它引入 @Configuration 註解的類 (java config), 引入ImportSelector接口(這個比較重要, 因爲要通過它去判定要引入哪些@Configurat

原创 ElasticSearch(一)基礎知識

目錄 相關產品 全文索引 Lucene lucene倒排索引 術語及概念 對外接口 API約定 多索引參數 日期篩選 通用參數 基於URL的訪問控制 REST HEAD插件 創建庫 JAVA API Elastic Search 是一個基

原创 Jenkins Pipeline 語法

目錄 聲明性pipeline Sections agent pipeline與stage中的不同 參數 常用選項 發佈 post stages steps Directives environment options 可用選項  stag