Instructions for using mysql to support native json

text MySQL started to support json natively in 5.7.8. This article will give a brief description of the usage of json types in mysql, hoping to be useful to you. CREATE TABLE testproject ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `skill` JSON NOT NULL, `student` JSON NOT NULL, PRIMARY KEY (`id`) ); View table structure: ...

Posted by scooterlibby on Tue, 22 Oct 2019 13:35:55 -0700

Data structure -- basic implementation and explanation of stack (C + + description)

Definition of stack Stack, also known as stack, is a linear table with limited operation. A linear table that is restricted to insert and delete operations only at the end of the table. This end is called the top of the stack, and the other end is called the bottom of the stack. Inserting new elements into a stack is also called pushing, pushi ...

Posted by tfburges on Tue, 22 Oct 2019 13:35:11 -0700

Mybatis source code initialization of mybatis

The initialization of Mybatis is completed by SqlSessionFactoryBuilder. The main work is to parse the XML file, encapsulate the parsed class contents into the Configuration class, and finally encapsulate the Configuration class into SqlSessionFactory and return it. Since then, the initialization is completed. Three classes, XMLConfigBuilder, XM ...

Posted by zigojacko on Tue, 22 Oct 2019 06:03:10 -0700

Learn java 8 together -- method reference

Let's learn java 8 (1) - there is a simple example of functional programming in functional programming: import java.util.function.Consumer; class Person { public static void sayHello(String name) { System.out.println("hello " + name); } } public class TestPerson { public static void main(String[] args) { work(Person::sayHe ...

Posted by blakey on Mon, 21 Oct 2019 22:04:30 -0700

Customize the ApiBoot Logging link and cell ID generation strategy

ApiBoot Logging will create a link number (TraceID) and a cell number (SpanID) for each request, which are used to classify each request log. The Parent SpanID of the log unit under a link can be used to sort out the relationship between the superior and the subordinate. Previous review Use ApiBoot Logging for unified management of request lo ...

Posted by spectacell on Mon, 21 Oct 2019 20:54:20 -0700

Optimization method of command code processing based on function matrix

switch optimization method based on function matrix Definition of command code Advantage expectation proposal Definition of command code During the development of c language, the following situations are often encountered (such as command code mechanism of modem bus protocol): #define PFUN_REQ_C ...

Posted by bsfischer on Mon, 21 Oct 2019 15:17:05 -0700

Analysis of the learner in zk

The parent class of observer and follower when learning defines common properties and methods Subclasses Follower and Observer Internal class: PacketInFlight indicates that there is no commit message in the proposal static class PacketInFlight { TxnHeader hdr; Record rec; } Properties: QuorumPeer Server node LearnerZooKeep ...

Posted by sp@rky13 on Mon, 21 Oct 2019 13:22:02 -0700

zk request processing class PrepRequestProcessor

As the first request processor of leader, PrepRequestProcessor can identify whether the current client request is a transaction request. If so, it will carry out a series of preprocessing, create the request transaction header, transaction body, session detection, ACL check and version detection. attribute   Construction method Method Subm ...

Posted by bigray on Mon, 21 Oct 2019 13:06:36 -0700

Performance test of golang mainstream high performance web framework

Test purpose Because of K8s, I dabbled in go language and found that there are many web frameworks of golang, which are called high-performance benchmarks. I have been committed to the research of c + + high-performance server framework before. Out of curiosity, I want to objectively compare the many web frameworks of go from the performance le ...

Posted by thecookie on Mon, 21 Oct 2019 01:32:30 -0700

JAVA CAS single sign on 3: CAS agent model drill

Preface JAVA CAS single sign on one: build CAS server JAVA CAS single sign on II: CAS common mode 1 drill The agent mode is more complex than the normal mode in the previous section. But the configuration will be slightly different. The so-called difficult will not, will not be difficult. If you encounter a problem that you have never met be ...

Posted by lenhewitt on Sun, 20 Oct 2019 22:51:11 -0700