Tag:Example

  • Spring 5 source code analysis series (7) – XML based dependency injection (1)

    Time:2020-4-6

    Preface: the previous series of articles analyzed the initialization process of spring IOC container, and then analyzed the dependency injection of spring. 1. Time of dependency injection After the spring IOC container completes the positioning, loading and registration of the bean definition resources, the IOC container has managed the data related to the bean definition. […]

  • [leetcode] 125. Verify palindrome string

    Time:2020-4-6

    subject Given a string, verify whether it is a palindrome string, only consider alphabetic and numeric characters, and ignore the case of letters. In this paper, we define an empty string as a valid palindrome string. Example 1: Input: “a man, a plan, a canal: Panama” Output: true Example 2: Type: “race a car” Output: […]

  • Constructor analysis of C ා class

    Time:2020-4-6

    Constructor A constructor is a method whose name is the same as the name of its type.  Its method signature contains only the method name and its parameter list; it does not contain a return type. Rules for defining constructors: (1) The name of the C ා language’s constructor must be the same as the […]

  • Define instance methods and static methods in sequence

    Time:2020-4-5

    Maybe it’s just like memongooseTo switch tosequelizeOf them.Methods recommended in the official documents first: const {Sequelize, Model} = require(‘sequelize’); const sequelize = require(‘../../base/db’); class User extends Model { //Static methods are equivalent to those defined on mongoose schema.statics static method() { return ‘statics function’; }; //The instance method is equivalent to the method defined on […]

  • Explain two installation and deployment methods of redis in detail

    Time:2020-4-5

    Redis is a common NoSQL database. We usually use redis for caching. This is an article about the installation of redis, so it won’t involve the advanced features and use scenarios of redis. Redis is compatible with most POSIX systems, such as Linux and OS X, but unfortunately it doesn’t support the installation on windows. […]

  • Why Vue’s data should be written as a function

    Time:2020-4-5

    The components of Vue are reusable. After a component is created, it can be reused in multiple places, no matter how many times it is reused, thedataThey should be isolated from each other, so every time a component is reused,dataIt should be reused once, every timedataThe change should have no effect on the data of […]

  • Spring 5 source code analysis series (8) – XML based dependency injection (2)

    Time:2020-4-5

    Foreword: in the previous article, we talked about the dependency injection of populatebean method to bean attribute, and we will continue the following content in this article. 7. Beandefinitionvalueresolver resolves property values When the container performs dependency injection on the property, if it finds that the property value needs to be type converted, for example, […]

  • Common methods and properties of arrays in JS

    Time:2020-4-5

    This paper summarizes the common methods and attributes of arrays in JS Three ways to create an array 1. Conventional method var arr = new Array (); arr[0]=”abc”; arr[1]=”def” 2. Simple way var arr = new Array(“abc”,”def”); 3. Literal measure var arr = []; arr=[“abc”,”def”]; perhaps var arr=[“abc”,”def”] Properties of an array object attribute describe […]

  • How to add API key authentication protection function to the API created on SAP API portal

    Time:2020-4-5

    Suppose I develop an API on the sap API portal and don’t want it to be called by anonymous users for free. In other words, only when a consumer has a legal API key can the API be called This requirement can be easily realized through one of the API policies published by the sap […]

  • Oracle 11.2.0.4 single instance patching

    Time:2020-4-5

      Oracle 11.2.0.4Single instance hitPSU,OJVM PSUPatch quick reference Write before: ·         1. The operation of each patch by oracel is sometimes different, so no matter how familiar you are, you should read the attachedreadme。 ·         2. Oracle will update the latestPSU, the latest in this article refers to the current latest (i.eIssued by 0719PSU)。 ·         […]

  • Taro multi terminal custom navigation bar navbar + tabbar instance

    Time:2020-4-5

    Using taro to realize multi terminal navigation bar / tabbar instance (H5 + applet + react native) Recently, taro has been developed. Although the official website introduces that it supports compiling to multiple ends, most of the examples on the Internet are H5 and small programs, and few support RN. Taro is just based on […]

  • The basic concept of object-oriented — class and object

    Time:2020-4-5

    1. Class and object, the relationship between them is a bit like “chicken first” or “egg first”, a bit entangled.From their definition, we can see:Use object to define class, use class to generate object!Sometimes when expressing concepts, objects and classes can be generic!When designing software systems, objects do not exist,When the software system is running, […]