springboot+redis+Interceptor+custom annotation to realize automatic idempotent interface
Foreword: In actual development projects, an exposed interface often faces many requests. Let's explain the concept of idempotency: the impact of any multiple execution is the same as that of a single execution. According to this meaning, the ultimate meaning is that the impact on the database can only be one-time and can not be repeated. How t ...
Added by seanrock on Sat, 06 Jul 2019 22:13:47 +0300
Easily deploy your PHP7 runtime environment on the server
brief introduction
Sometimes the installation and deployment of the server, each time in some process, forgot to always find out the previous notes, now the whole process will be sorted out.
This is Centos 7.2, which will help you to spend less time looking for notes in the future.
Blog Address
My github address Welcome your attention
Servi ...
Added by codygoodman on Fri, 05 Jul 2019 04:03:16 +0300
ThinkPHP Framework Model
1. There is a test method in MainController.class.php controller, and there is also a deng method. I want to use the deng method in the test method.
Expressed as
<?php
namespace Home\Controller;
use Think\Controller;
class MainController extends controller
{
public function test()
{
$this->deng();
}
2. There is a test ...
Added by marq on Thu, 04 Jul 2019 02:41:23 +0300
Serialization Component of rest_framework
What is rest_framework serialization?
When writing a project that does not separate the front and back ends:
We have form components to help us do data validation
We have template syntax, and queryset objects extracted from the database do not need to be reformatted artificially.
When we write front-end and back-end separation projects:
We ...
Added by john_wenhold on Wed, 03 Jul 2019 22:18:22 +0300
python third day of study
python third day of study
First, make up for yesterday's arrears:
for loop
A for loop in python can loop items of any sequence, such as a list or a string
Each element in a list can be looped
Grammar:
lb = 'asdasd'
for a in lb:
print(a)
Result entered:
a
s
d
a
s
d
for can be indexed independently and is a general ...
Added by weaselandalf on Wed, 03 Jul 2019 19:46:07 +0300
RSyslog+Log Analyzer Log Collection System for Linux
Introduction to Log AnalyrThe Log Analyzer tool provides an easy-to-use, powerful front-end for searching, viewing and analyzing network activity data, including system logs, event logs and many other log sources. Since it only presents data to our users, the data itself needs to be collected by another program, such as syslogd, rsyslog (now th ...
Added by Hitoshi on Wed, 03 Jul 2019 02:04:59 +0300
Spring Batch Learning Records
Background: Before I looked at the company's data import platform, imported user order records, using SpringBook's own Scheduled task scheduling function, and then notified developers by e-mail whether the task scheduling was successful. Overall, the function is to support the existing business, but developers can not clearly understand the sta ...
Added by jcbarr on Tue, 02 Jul 2019 21:20:05 +0300
phpcms page replacement
The replacement process for the first page starts with making a static page and getting it here:
You will find that there are no pictures and no stylesheets in this page.
Because we just throw web pages over, the corresponding pictures and stylesheets aren't thrown over
Pictures or anything should be thrown in:
Then open the index.html home ...
Added by ashleek007 on Tue, 02 Jul 2019 20:32:28 +0300
Tree Cover Tree With Pruning President Tree
Algorithm
Task
Given a sequence of length \(n\), support for single point modification and interval \(kth\) queries is required to force online.
Limitation
If the input data is considered to be all of the same order as \(n\), the space-time complexity of the algorithm is required \(O(n \log^2n)\)
Solution
In fact, there is no half-money relatio ...
Added by Shane10101 on Tue, 02 Jul 2019 19:56:24 +0300
(High concurrency detection) 2. redis cluster deployment.
1. Node planning:
Two ways: one master + many slaves, many to many slaves, the second way to share the master node, easy to expand and reduce capacity.
Container name container IP address Map port number Service Running Mode
Redis-master1 172.1.50.11 6391->6379,16391->6379 master
...
Added by bluetonic on Tue, 02 Jul 2019 19:06:01 +0300