Tag:method

  • The initial use of Dao layer + service layer + action layer in spring

    Time:2020-7-7

    1. Dao layer: (divided into interface and Implementation) package com.myget; public interface PersonDao { public void add(); } + package com.myget; import javax.annotation.Resource; import org.springframework.stereotype.Repository; @Repository (“persondao”) / / equivalent topublic class PersonDaoImplement implements PersonDao { public void add(){ System.out.println (the “add method of Dao layer”); }} 2. Service layer: (interface and Implementation) package com.myget; […]

  • Packaging h5toapp method

    Time:2020-7-7

    Method 1 Create a new Android studio project and use WebView to specify your page Method 2 Use the tool Cordova with address: http://cordova.axuer.com/docs/zh-cn/latest/guide/platforms/android/index.html Method 3 Ionic combined with Cordova Method 4     ApiCloud        https://www.jianshu.com/p/c45148134082 Method 5 For reference( https://reactnative.cn/docs/signed-apk-android/ ) 1. Generate private key ① Open the terminal in the root directory […]

  • ATSs: adaptive positive and negative anchor selection for target detection, solid trick | CVPR 2020

    Time:2020-7-6

    This paper points out that the difference between one stage anchor based and center based anchor free detection algorithms mainly comes from the selection of positive and negative samples. Based on this, an adaptive training sample selection (ATSs) method is proposed, which can automatically select the appropriate anchor according to the statistical characteristics of GT […]

  • 7. Tongge said that the selector of Java NiO core component of netty series

    Time:2020-7-6

    < p align = “right” > — the sun arch dies and comes unexpectedly! </p> Hello, I’m tongge. This is the seventh in the netty series. brief introduction In the last chapter, we learned about buffer, the core component of Java NiO. It is usually used with channel. But how can they be used in […]

  • [spring MVC] Chapter 2 dispatcher servlet initialization

    Time:2020-7-5

    initialization Dispatcher servlet is the core of spring MVC, so initialization is also around it. In the last articleFrom ServletAs mentioned in, servlet provides initialization methodsinitLet’s take a look at the class diagram of the dispatcher servlet Let’s look at the inheritance relationship shown in the figure to see where this is implementedinitmethod. GenerericServlet GenerericServletThe […]

  • Schematic realization principle of promise (1) — basic realization

    Time:2020-7-5

    This article starts with WeChat official account of vivo Internet technology.Link: https://mp.weixin.qq.com/s/UNzYgpnKzmW6bAapYxnXRQAuthor: Kong Chui Liang Many students are learning promise, but they don’t know why. They can’t understand the usage of promise.This series of articles from simple to deep gradually realize promise, and combined with flow chart, examples and animation to demonstrate, to achieve a […]

  • [ asp.net Core series] 13 introduction to identity authentication

    Time:2020-7-4

    Preface Through the first two articles, we realized how to access data in the service layer, and how to use simple encryption algorithm to encrypt data. In this article, we will explore how to achieve this asp.net Core authentication. 1. Authentication asp.net There are two common authentication modes for core: jwtbearer and cookie. In this […]

  • ES6 basic notes

    Time:2020-7-4

    1、 Use scenarios of deconstruction assignment Exchange the value of a variable [x, y] = [y, x]; It is convenient to take values from functions function func() { return [1, 2, 3]; } var [a, b, c] = func(); Definition of function parameters //The parameter is a set of unordered values function f ({x, y, […]

  • Specification of GIT commit submission record

    Time:2020-7-4

    Blog original text: xxoo521.com “specification of GIT commit submission record (interactive command line)” With the increase of project volume, more and more students participate in the project. Everyone has their own habit of playing git log: Format 1:Add: add Format 2:[add]: add Format 3:Add In order to form a unified specification and reach a consensus, […]

  • JVM Performance Optimization — bytecode Technology

    Time:2020-7-4

    1、 Application scenarios of bytecode Technology AOP technology, Lombok plug-ins to remove duplicate code, dynamic modification of class files, etc 2、 Byte technology advantages Java bytecode enhancement refers to modifying Java bytecode and enhancing its function after it is generated. This method is equivalent to modifying the binary file of application program. Java bytecode enhancement […]

  • You know? Object.entries (), but you also know there are Object.fromEntries ()?

    Time:2020-7-4

    object.entries()Convert an objec to array. But what if you want to do the opposite? Don’t think about it! useObject.fromEntries()To convert array to object. const keyValuePair = [ [‘cow’, ‘🐮’], [‘pig’, ‘🐷’], ]; Object.fromEntries(keyValuePair); // { cow: ‘🐮’, pig: ‘🐷’ } Object.fromEntries Let’s first point out the anatomical method of an object. An object is something […]

  • JS advanced: the direction of this in the function and the different calling methods of the function

    Time:2020-7-4

    The direction of this in function   Who is this in ordinary functions? — window Object. Who is this in the method? — the current instance object Who is this in timer method? — window Who is this in the constructor? — instance object Who is this in the prototype object method? — instance object […]