原创 Canal-1.1.4部署安裝

官方源碼GitHub:https://github.com/alibaba/canal 一、canal工作原理 canal 模擬 MySQL slave 的交互協議,僞裝自己爲 MySQL slave ,向 MySQL master 發送

原创 identity server4 授權成功頁面跳轉時遇到錯誤:Exception: Correlation failed. Unknown location的解決方法

一、異常信息描述 錯誤信息,看到這個頁面是否耳熟能詳擔又不知道怎麼解決 ,坑死個人不償命,,,,,,,,      二、處理方法 1、在web項目中增加類SameSiteCookiesServiceCollectionExtensions

原创 Identity Server 4使用OpenID Connect添加用戶身份驗證(三)

一、說明 基於上一篇文章中的代碼進行繼續延伸,只需要小小的改動即可,不明白的地方可以先看看本人上一篇文章及源碼:  Identity Server 4資源擁有者密碼認證控制訪問API(二)  GitHub項目源碼:https://githu

原创 DotNet發佈程序到NuGet

1、新建一個類庫         2、選擇項目屬性,在包欄目下填寫    3、選擇項目,鼠標右鍵"打包" 主要注意的是生成配置需改爲Release 4、然後就可以在我們項目 bin\Release 目錄下看到我們打包好的 nuget p

原创 Identity Server 4資源擁有者密碼認證控制訪問API

基於上一篇文章中的代碼進行繼續延伸,只需要小小的改動即可,不明白的地方可以先看看本人上一篇文章及源碼: Identity Server 4客戶端認證控制訪問API     一、QuickStartIdentityServer4項目中Conf

原创 Identity Server 4客戶端認證控制訪問API

項目源碼: 鏈接:https://pan.baidu.com/s/1H3Y0ct8xgfVkgq4XsniqFA 提取碼:nzl3 一、說明 我們將定義一個api和要訪問它的客戶端,客戶端將在identityser上請求訪問令牌,並使用訪

原创 ShardingSphere-proxy-5.0.0企業級分庫分表、讀寫分離、負載均衡、雪花算法、取模算法整合(八)

一、簡要說明 以下配置實現了: 1、分庫分表 2、每一個分庫的讀寫分離 3、讀庫負載均衡算法 4、雪花算法,生成唯一id 5、字段取模 二、配置項 # # Licensed to the Apache Software Foundatio

原创 ShardingSphere-proxy-5.0.0建立mysql讀寫分離之讀庫負載均衡算法配置(七)

# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTIC

原创 ShardingSphere-proxy-5.0.0建立mysql讀寫分離的連接(六)

一、修改配置文件config-sharding.yaml,並重啓服務 # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor

原创 ShardingSphere-proxy-5.0.0容量範圍分片的實現(五)

一、修改配置文件config-sharding.yaml,並重啓服務 # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor

原创 ShardingSphere-proxy-5.0.0分佈式哈希取模分片實現(四)

一、說明 主要是對字符串的字段進行hash取模 二、修改配置文件config-sharding.yaml,並重啓服務 # # Licensed to the Apache Software Foundation (ASF) under o

原创 ShardingSphere-proxy-5.0.0分佈式雪花ID生成(三)

一、目的 保證在分庫分表中每條數據具有唯一性 二、修改配置文件config-sharding.yaml,並重啓服務 # # Licensed to the Apache Software Foundation (ASF) under on

原创 linux下minio部署安裝

一、環境準備 官網下載:https://min.io/download#/linux 二、部署 # 添加操作權限 chmod +x minio # 設置後臺服務啓動(9005是後臺登錄頁面,9006是webapi接口端口,用於服務調用)

原创 ShardingSphere-proxy-5.0.0取模分片(二)

一 、修改 config-sharding.yaml  並重啓服務  ./start.sh   二、在代理中間件中t_product添加2條測試數據  如圖,product_id爲1的數據在t_product_1表中,product_id

原创 ShardingSphere-proxy-5.0.0部署之分表實現(一)

一、說明 環境準備:JDK8+     mysql 5.x 官網:https://shardingsphere.apache.org/ 下載地址:https://archive.apache.org/dist/shardingsphere/