Tag:Route

  • When are beginpath and closepath used in canvas?

    Time:2021-3-7

    learncanvasAt the same time, it’s not how to draw all kinds of graphics, but how to draw thembeginPath()andclosePath()When do these two functions work? What do they do. First of all, this is the case of 2d rendering, that isCanvasRenderingContext2DObject (2d rendering context, this translation feels awkward). One thing to be clear is the idea of […]

  • Build a scaffold (Vue CLI) and create a project

    Time:2021-3-7

    Recently, I just learned the knowledge about Vue scaffold, so I sorted out the process of building a project with Vue cli 1. Installation node.js Environmental Science Download from the official website: https://nodejs.org/en/download/ After downloading, open it and keep going to next Open CMD and enter: node -v npm -v If the relevant version number […]

  • Red black tree

    Time:2021-3-6

    R-B tree, also known as red black tree, is a special binary search tree. Each node of the red black tree has a storage bit to represent the color of the node, which can be red or black. The characteristics of red black tree are as follows Nodes are red or black. The root node […]

  • Linux add path to path environment variable

    Time:2021-3-6

    Linux add path to path environment variable 1、 Path environment variable The path variable is the place where the Linux system stores the search path of the executable file, which is equivalent to the path variable of the windows system. Because I haven’t used it in other operating systems, I don’t know the details. Similar […]

  • Swoole installation problem

    Time:2021-3-6

    Swoole installation problem Official document —https://wiki.swoole.com/wiki/page/1.html Official error—https://wiki.swoole.com/wiki/page/438.html 1、 Installation problem: Compilation problems (1) Today, when deploying multiple versions of PHP, we encountered a compilation failure error and failed to find PHP config. When compiling and installing spool, some parameters are required for. / configure, complete as follows:. / configure — with PHP config = […]

  • Leetcode 124. Maximum path and | Python in binary tree

    Time:2021-3-6

    124. Maximum path sum in binary tree Title Source: leetcode https://leetcode-cn.com/problems/binary-tree-maximum-path-sum subject Given a nonempty binary tree, the maximum path sum is returned. In this problem, the path is defined as a sequence from any node in the tree to any node. The path contains at least one node and does not necessarily pass through […]

  • Path drawing of canvas

    Time:2021-3-6

    The busiest stage of another project has passed. Looking back at the half drawn articles left by my study of canvas, I once again prove that I will forget when I don’t need to use technology. I have no impression on many things_ T。Don’t want to be rotten, chew the book again~ This is the […]

  • Installation and configuration of mongodb4.0 in Windows

    Time:2021-3-6

    preface The main contents of this paper are as follows*What is mongodbInstallation and configuration of mongodb4.0 in WindowsWe will focus on some problems encountered in the installation and configuration of mongodb4.0 in windows* What is mongodb Mongodb features summary: distributed file storage, easy to expand, unstructured Mongodb is a database based on distributed file storage. […]

  • Istio: implementing AB testing and path cutting in VS

    Time:2021-3-4

    The content of this article The main purpose is to summarize the relevant rules of match in VS and how to realize path cutting in istio (current version 1.8.2) Experiment demo main.go package main import ( “github.com/gin-gonic/gin” “net/http” ) func main() { //1. Create route r := gin.Default() //2. Binding routing rules and executing functions […]

  • Upload and download files / pictures with springboot

    Time:2021-3-4

    Import dependency( pom.xml ) commons-io commons-io 2.6 commons-fileupload commons-fileupload 1.3.3 javax.servlet javax.servlet-api 4.0.1 net.coobird thumbnailator 0.4.8 Global configuration application.properties #Upload file size spring.servlet.multipart.max-file-size=5MB spring.servlet.multipart.max-request-size=5MB Create webmvcconfigConfiguration classStatic resource mapping @Configuration public class WebMvcConfig implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { ApplicationHome h = new ApplicationHome(getClass()); File jarF = h.getSource(); String dirPath = jarF.getParentFile().toString()+”/upload/”; […]

  • Vue + spring boot simple user login demo

    Time:2021-3-4

    1 Overview A simple user login with front end and back end separatedDemo。 2 technology stack Vue BootstrapVue Kotlin Spring Boot MyBatis Plus 3 front end 3.1 creating projects usevue-cliCreate. If not installed, you can install it first sudo cnpm install -g vue @vue/cli View version: vue -V When the version appears, the installation is […]

  • Detailed explanation ASP.NET Principle of core endpoint routing

    Time:2021-3-4

    Endpoint routing first appeared in the Internet ASP.NET Core2.2, in ASP.NET Core3.0 was promoted to first class citizen. Motivation of endpoint routing Before the emergence of endpoint routing, we usually define MVC middleware resolution routing at the end of the request processing pipeline. This means that in the processing pipeline, the middleware before MVC middleware […]