Node.js Article 14: JWT-based interface security verification

Security authentication methods for interfaces Traditional Interface Security Authentication Methods Internet services cannot be separated from user authentication.The general process is as follows. Users send user names and passwords to the server. After validating the server, relevant data, such as user roles, logon times, and so on, ar ...

Posted on Thu, 21 May 2020 14:08:47 -0400 by JimiLives

springBoot Integrated Quatz Cluster

1. Import dependencies: <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.2.1</version> </dependency> 2. Add to ProjectQuartz.propertiesFile (so you don't have to walk its own properties file) # ...

Posted on Thu, 21 May 2020 12:48:46 -0400 by mikevarela

Three solutions for PHP concurrency scenario

In the concurrency scenarios such as seckill and rush to buy, oversold may occur. There is no native concurrency solution in PHP language, so we need to use other methods to achieve concurrency control. Common solutions listed are: With queue, an extra process is set up to process the queue, and the concurrent requests are put into the queue. I ...

Posted on Thu, 21 May 2020 10:24:07 -0400 by jtmathome

Beauty of mybatis source code: 1.3. Find a starting point for learning mybatis source code

Find the starting point of learning mybatis source code To learn the source code of mybatis, the first step must be to find a starting point for learning. First, we start with a simple Demo, re experience the way of using mybatis, and then we can start from it to learn the source code of mybatis. Hello World First of all, we will build a new He ...

Posted on Thu, 21 May 2020 02:36:29 -0400 by gleemonex

OLAP query engine, ClickHouse cluster management

1, Introduction to column Library ClickHouse is an open-source column storage database (DBMS) of Yandex company in Russia in 2016, which is mainly used for OLAP online analysis and processing queries, and can generate analysis data reports in real time using SQL queries. Columnar storage For row storage and column storage, the organization st ...

Posted on Thu, 21 May 2020 00:54:06 -0400 by skeener

xorm operation PostgreSQL database (add, delete, modify and query instances)

1, Introduction to xorm Xorm is a simple and powerful ORM Library of Go language. It can make database operation very simple. The goal of xorm is not to let you not learn SQL at all. We don't think SQL will be replaced by ORM, but ORM will solve most of the simple SQL requirements. Xorm supports a mix of two styles. characteristic Support ...

Posted on Wed, 20 May 2020 12:10:59 -0400 by phpfreak

Database Middleware - jdbi

Source: https://www.jianshu.com/p/1ee34c858cb9 Java's database uses jdbc natively, and there are many middleware, such as hibernate, mybatis, and jdbi, which are the most commonly used middleware. How to choose In general, if only one kind of database is always used, jdbc is the best choice. In this way, you can directly use the lowest leve ...

Posted on Wed, 20 May 2020 11:50:50 -0400 by sactown

Spring Boot tutorial - Mybatis

1. What is Mybatis? MyBatis is an excellent persistence framework that supports custom SQL, stored procedures, and advanced mapping. MyBatis eliminates almost all JDBC code and the work of setting parameters and getting result sets. MyBatis can configure and map primitive types, interfaces and Java POJO s (Plain Old Java Objects) as records in ...

Posted on Wed, 20 May 2020 11:42:05 -0400 by HaVoC

MySQL + +: Liunx - MySQL master-slave replication

Objective: build two MySQL servers, one as the master server and one as the slave server to realize master-slave replication Environment: virtual machines Main database: 192.168.211.101 From database: 192.168.211.102 For MySQL installation, please refer to: go for a walk 1) : main library configuration steps 1. Configure master database: ...

Posted on Wed, 20 May 2020 01:01:25 -0400 by void_function

ftp, nfs, samba, and inotify_of the file shareRsync Real-Time Backup

1. Implement vsftpd virtual user access based on mysql authentication This scenario is implemented using two servers, one ftp server and one database server 1.1 Install Database [root@c5 ~]#yum -y install mariadb-server [root@c5 ~]#systemctl start mariadb.service [root@c5 ~]#systemctl enable mariadb 1.2 Install vsftpd, mariadb-devel, pam-devel ...

Posted on Tue, 19 May 2020 13:38:09 -0400 by ScOrPi