Koa and the Use of Common Middleware
1. What is Koa?
Node.js is an asynchronous world. The official API supports the asynchronous programming model in the form of callback, which brings many problems, such as nesting of callback, and the possibility of calling callback to return da ...
Posted by jsim on Mon, 16 Sep 2019 20:25:15 -0700
Spring Security Analysis: Development and Principle Analysis of Single Sign-on (SSO) Based on JWT
Spring Security Analysis (6) - Development and Principle Analysis of Single Sign-on (SSO) Based on JWT
When learning Spring Cloud, when encountering the related content of authorized service oauth, he always knows half of it, so he decided to study and collate the content, principle and design of Spring Security, Spring Security Oauth2 and othe ...
Posted by nootkan on Mon, 16 Sep 2019 04:13:25 -0700
SpringBoot implements distributed session
Implement distributed session
Implement redis-based distributed session
principle
Replace the Session implementation class obtained from request based on HttpRequestWapper by providing a Session implementation class that gets data from redis
rely on
Introduce spring-boot-starter-data-redis, spring-session-data-redis; Introducing kr ...
Posted by frosero on Sun, 15 Sep 2019 19:15:18 -0700
WeChat Applet Integration Tencent Cloud IM SDK
1. Background
Since business functions require access to IM (Instant Chat) functionality, the initial thought was to use WebSockets to achieve this functionality. It was natural to trick (haha) that the server version is too low to support the wx protocol (and WebSockets are no longer supported) and have to look for third-party services becaus ...
Posted by daphreeek on Sun, 15 Sep 2019 18:42:51 -0700
Haytham Personal Blog Development Log-Flask+Vue Logon Status and Routing Management Based on token
The signpost
In line with the key words, this blog may be helpful to you.
Flask applications without factory functions
Flask Applications Without Blueprint
Flask cross-domain configuration
Login Status Management Based on Token
Flask+Vue
Vue Routing Interception
Axios hook
Applicable scenario
This is a personal blog built record blog, but als ...
Posted by andychurchill on Sun, 15 Sep 2019 03:54:50 -0700
EFK follow-up of log system: monitor alarm monitoring
Previous articles EFK Follow-up of Logging System: fluent-bit Service Independence It completes fluent-bit acquisition, fluentd forwarding to kafka, and then to elastic search. Later, it is mentioned that the server logs should be synchronized to the fluent-bit environment. This can be accomplished by incremental synchronization through rsync, ...
Posted by dannynosleeves on Thu, 12 Sep 2019 02:38:38 -0700
3. pytest Chinese Document--Writing Assertions
Catalog
Writing assertions
Writing assertions using assert
Write assertions that trigger expected exceptions
Optimization of special data structure comparison
Add custom instructions for failed assertions
Details of assertion introspection
Overwrite Cache Files
To be able to assert se ...
Posted by if on Wed, 11 Sep 2019 02:04:23 -0700
Solve the single sign-on (SSO) problem after Spring Boot upgraded from 1.x to 2.x
Solve the single sign-on (SSO) problem after Spring Boot upgraded from 1.x to 2.x
When learning Spring Cloud, when encountering the related content of authorized service oauth, he always knows half of it, so he decided to study and collate the content, principle and design of Spring Security, Spring Security Oauth2 and other permissions, authe ...
Posted by Mesden on Wed, 11 Sep 2019 01:46:46 -0700
Improvements to XA support in MySQL 5.7
introduce
XA, which means "eXtended Architecture", is the standard created by The Open Group for distributed transaction processing. Although MySQL 5.0 is the first version to support XA, MySQL 5.7 improves the reliability of XA support, ...
Posted by SouThPaw09 on Tue, 10 Sep 2019 22:42:26 -0700
2. pytest Chinese Document - Use and Call
Catalog
Use and invocation
Call pytest through python-m pytest
The status code returned at the end of pytest execution
Get help information
Maximum number of test cases allowed to fail
Execute the specified test case
Execute test cases in the specified module:
Execute test cases in th ...
Posted by wiggly81 on Tue, 10 Sep 2019 01:46:54 -0700