Java Backend Security Development Spring Security Development REST Service Chapter 4-4 - SMS Authentication Code
1. Configuration related
1.1 AbstractChannelSecurityConfig
Abstract class encapsulating authentication logic for Http pages
ApplyPasswordAuthentication Config sets the default form login authorization authentication route for HttpSecurity, and imoocAuthentication SuccessHandler, imoocAuthentication ...
Posted by TheSeeker on Thu, 06 Feb 2020 21:11:52 -0800
The similarities and differences of HashMap and ConcurrentHashMap modification in single thread and multi thread traversal
1, Scenario introduction
JRBM has a demand for detecting the online situation of team Websocket:
The existing concurrenthashmap < teamid, jrbmsession > map, jrbmsession includes session and lastlivetime. The front end sends heartbeat to the service end through ws connection every 3s. After re ...
Posted by HaXoRL33T on Thu, 06 Feb 2020 04:28:58 -0800
K8S single master deployment I: environment planning, ETCD deployment
Experimental environment planning
Summary
Use VMwork virtual machine to deploy small cluster with single master and double nodes, and install etcd on both master and node to implement etcd cluster.
Software adopted version
Software name
Edition
Linux system
Linux version 4.8.5
Kubernetes
1.9
Docker
Docker version 19.03.5
Etcd
v3.3. ...
Posted by Cinds on Wed, 05 Feb 2020 06:33:21 -0800
Alicloud OSS upload / download and SMS verification code
(1) : you must first open related services on alicloud OSS. For details, please refer to this link:
https://help.aliyun.com/document_detail/31883.html?spm=5176.10695662.1996646101.searchclickresult.5ceb3ee82NzMq7&aly_as=WhUj5kPK
Or for video address, please refer to this link: http://cloud.video.tao ...
Posted by stick_figure on Wed, 05 Feb 2020 03:42:59 -0800
Basic JavaScript learning
Origin of note learning: Top 100 projects of Duyi education Web front end
Interaction: do an operation on the page, etc., and then it returns a feedback
Binding events
Note: an event can only be bound to one processing function, which is basically equivalent to being written in html between lines
Namely ...
Posted by sbrinley on Tue, 04 Feb 2020 08:06:35 -0800
037 Python multitasking process & thread & Co process
Article directory
1. Understand multitask programming
2. Multi process programming
2.1 understanding process
2.2 create subprocess
2.2.1 method 1: fork creates a subprocess
2.2.2 method 2: Process creates a subprocess
2.2.3 method 3: Pool creates a subprocess
2.3 interprocess communication
3. Mul ...
Posted by blkraven on Tue, 04 Feb 2020 02:57:08 -0800
JavaScript only needs 200 lines of code to develop blockchain
Implement a simple blockchain with JavaScript development. Through this development process, you will understand what blockchain technology is: blockchain is a distributed database, and the storage structure is a growing linked list, which contains many orderly records.
However, in general, when we talk about blockchain, we also talk about ...
Posted by kylebragger on Mon, 03 Feb 2020 05:14:03 -0800
Only 180 lines of code are needed to develop blockchain with Go language
What language does blockchain development use? Through this article, you will use go language to develop your own blockchain (or build blockchain with go language), understand how hash function keeps the integrity of blockchain, master how to create and add new blocks with go language programming, realize multiple nodes to generate blocks th ...
Posted by chalexan on Mon, 03 Feb 2020 05:13:46 -0800
Deserializing JSON objects to dynamic objects using Json.net
Can I use json.net to deserialize dynamic objects from json? I want to do something like this:
dynamic jsonResponse = JsonConvert.Deserialize(json);
Console.WriteLine(jsonResponse.message);
#1 building
Starting with Json.NET 4.0 Release 1, native dynamic support is provided:
[Test]
public void DynamicDeserialization()
{
dynamic j ...
Posted by xxATOMxx on Mon, 03 Feb 2020 00:52:51 -0800
RocketMQ practice -- high concurrency seckill scenario
1. Preface
Seckill is essentially a short-term, sudden and high concurrent access problem. Its business features are as follows:
Triggered by timing, the flow suddenly increases in an instant
Only some of the requests for seckill are successful
Seckill products are often limited in quantity, not over ...
Posted by fatepower on Sun, 02 Feb 2020 22:06:54 -0800