Yii2.0.12 upgrade to PHP7.2

Let's talk about the PHP running environment of the Yii framework. Yii 2.0.12 uses the \ yii\base\Object class, and the Object as the class name PHP7.2 reports an error. The minimum available version of Yii2 for PHP7.2 is 2.0.13. Provides several ways to upgrade. The project uses Composer to manage bower and npm front-end resources. Inst ...

Posted by eerikk2 on Sun, 10 Nov 2019 20:37:57 +0100

How Mybatis XML maps to methods

Preface Above How Mybatis's method maps to XML This article describes how Mybatis maps method names to statementID s for method splitting, how parameters are parsed into sql in xml, and how return types are handled; it will look at how methods are mapped from the XML side. XML Mapping Class In the previous two articles, you learned that the ...

Posted by robindean on Sun, 10 Nov 2019 03:48:03 +0100

Docker use - two hours to get started

Welcome to the original link: https://mp.weixin.qq.com/s/eAJpnEfjflVr76iPVHN6rA  This is a personal note of sorting and thinking after watching the above links   Advantages of docker container More efficient use of system resources Because the container does not need additional overhead such as hardware virtualization and runni ...

Posted by nosher on Sat, 09 Nov 2019 12:52:47 +0100

The sixth way to instantiate classes

How many ways do you know to instantiate a class? new? Reflection? And? The author summarizes the following six ways: (1) instantiate a class by constructing a method; (2) instantiate a Class through Class; (3) instantiate a class by reflection; (4) instantiate a class by cloning; (5) instantiate a class through deserialization; (6) ins ...

Posted by steply on Fri, 08 Nov 2019 22:36:41 +0100

Character device driven notes

Character device driven notes I. Introduction Among all Linux device drivers, character device driver is the most basic. This note will explain the structure of linux character device driver and explain the programming methods of its main components. II. Main structures and API functions cdev structure struct c ...

Posted by BobRoberts on Fri, 08 Nov 2019 16:21:40 +0100

How to execute SQL in Mapper interface of Mybatis

Preface In many ORM frameworks, Mybatis is used by more and more Internet companies. The main reason is that Mybatis is easy to use and flexible to operate. This series is going to ask questions to learn more about Mybatis from the source layer. Put questions to The most common way to use Mybatis is to get a Mapper interface object, and the ...

Posted by verN on Fri, 08 Nov 2019 10:49:44 +0100

Introduction to Java JVMTI and Instrumention mechanisms

Or look at the blog on my CSDN:https://blog.csdn.net/u013332124/article/details/88367630 1. Introduction to JVMTI JVMTI (JVM Tool Interface) is a native programming interface provided by the Java virtual machine. It is an alternative version of JVMPI (Java Virtual Machine Profiler Interface) and JVMDI (Java Virtual Machine Debug Interface). ...

Posted by creative on Fri, 08 Nov 2019 03:49:03 +0100

Comparing lambda expression with traditional interface function

In some articles written before this number, the author used lambda expression syntax, some readers reported that the code could not be understood.I thought java 13 was already out. The most important feature of lambda expressions in java 8 should be well understood. In fact, there are still a large number of programmers who do not use java 8, ...

Posted by dandare on Fri, 08 Nov 2019 01:53:05 +0100

[Array] Print matrix from outside to inside

Tag: Array Title Description Enter a matrix to print out each number in clockwise order from outside to inside. For example, if you enter the following matrix: 1 2 3 4 5 6 7 9 11 12 13 14 15 16, the numbers 1,2,3,4,8,12,16,14,13,9,6,7,11,10 will be printed out sequentially. Solving problems First get the number o ...

Posted by |Adam| on Thu, 07 Nov 2019 21:46:43 +0100

Jackson's Most Common Configurations and Notes

1. Beans import java.util.Date; import java.util.LinkedList; import java.util.List; public class Result<T> { private Integer code; private String message; private Date time; private T data; public Integer getCode() { return code; } public void setCode(Integer code) { this.code = code; } ...

Posted by fred2k7 on Thu, 07 Nov 2019 16:29:23 +0100