Microservice architecture integrates Sa-Token to implement gateway authentication and authentication services

Microservice architecture integrates Sa-Token to implement gateway authentication and authentication services This project is a hands-on project I made, using the SpringCloudAlibaba microservice architecture. When I was working on the authentication module, I remembered the Sa-Token project I had seen online before. It was called the Light of Domestic Authentication, so I checked their documentation […]

Microservice—-Docker

1. Introduction 1.1 How does Docker solve the compatibility issues of complex dependencies and dependencies of different components in large projects? Docker allows applications, dependencies, function libraries, and configurations to be packaged together during development to form a portable image. Docker applications run in containers and are isolated from each other using a sandbox mechanism. […]

Cross-domain: Use JSONP and WebSocket to achieve cross-domain access

Cross-domain basic knowledge points: Cross-domain knowledge points Four ways for iframe to achieve cross-domain: Four ways for iframe to achieve cross-domain Note: The virtual host used in this article is also configured in the iframe above. Table of Contents JSONP cross domain Introduction to JSONP Cross-domain experiments: WebSocket cross domain Introduction to websockets Cross-domain experiments […]

Java uses FTP cross-server dynamic monitoring to read file data in the specified directory

Background: 1. The file data is on server A (windows) (generated in the specified directory from time to time), and the project application is deployed on server B (Linux); 2. The project is applied on server B, monitors the directory specified by server A, and if there are newly generated files, reads the file information […]

Fabric: Using InvokeChaincode to achieve cross-channel data access

Because I encountered some problems at work, I considered using Fabric’s cross-channel chain code calling method InvokeChaincode() to solve them. This article mainly records the following usage process of InvokeChaincode() and the problems encountered in the Fabric test network. 1 Preparation 1.1 Understanding InvokeChaincode The function of InvokeChaincode is to call the specified chain code. […]

Cross-domain issues in Ajax requests and their solutions

Cross-domain issues Cross-domain refers to requesting the resources of another domain name from a web page of one domain name, such as currently requesting the JD server (https://www.jd.com) on the Baidu page (https://baidu.com) Resources Traditional requests will not cross domains On the a site, you can submit it through hyperlink or form form or window.location.href […]

cross compile toolchain on ubuntu 2204

#!/bin/bash ##———————————————— ————- ## Configuration variables ##———————————————— ————- root_dir=”/home/prometheus/module-test/cross-compile” target=”powerpc-eabi” clean_install=true build_binutils=true build_gcc_static=true build_newlib=true build_gcc=true # gcc dependency isl_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-0.15.tar.bz2″ mpfr_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-2.4.2.tar.bz2″ mpc_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz” gmp_tar_link=”ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2″ # use gcc492, confirmed ok binutils_tar_link=”http://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz” #binutils_tar_link=”https://ftp.gnu.org/gnu/binutils/binutils-2.39.tar.gz” #gcc_tar_link=”http://mirrors.kernel.org/gnu/gcc/gcc-6.1.0/gcc-4.9.2.tar.gz” gcc_tar_link=”https://mirrors.kernel.org/gnu/gcc/gcc-6.1.0/gcc-6.1.0.tar.gz” newlib_tar_link=”ftp://sourceware.org/pub/newlib/newlib-2.4.0.tar.gz” ##———————————————— ————- ## Function definitions ##———————————————— ————- function announce {<!– –> now=$(date + “%T”) echo echo “[$now] $1” echo } pushd () {<!– […]

Getting started with OpenCL on Microsoft Windows

Getting started with OpenCL on Microsoft Windows Get started with OpenCL on Microsoft Windows OpenCL is not native to the Windows operating system, and as such isn’t supported across the board of UWP (Universal Windows Platform) platforms (XBox, Hololens, IoT, PC) and the Microsoft Store. Windows as a traditional content creating platform however can build […]