How does the asp.net core API receive parameters

Introduce various ways of receiving parameters 1. To parse the query parameters in the URL, you need to annotate the controller method parameters with [FromQuery], such as: 2. The parameters themselves are part of the path, which can be called routing parameters. 3. Receiving data from HTTP tables ...

Posted by jweissig on Thu, 03 Oct 2019 16:16:19 -0700

Using python+selenium to crawl patents on derwent database

Using python+selenium to crawl patents on derwent database Demand: Login to web of science and enter derwent database, search according to company excel list, and download all search ethics records to the local designated path. Train of thought: It is similar to the steps of climbing cortellis, and al ...

Posted by SJones on Thu, 03 Oct 2019 15:15:12 -0700

Use jquery-intro plug-in for page boot

I. Introduction Official download: https://introjs.com/example/hello-world/index.html Basic configuration Setting parameters: Setting multiple formats json format: key:value can set parameters nextLabel: "Next →", prevLabel: "← Back", skipLabel: "Skip", doneLabel: "Done", tooltipPosition: "bottom", tooltipClass: "", hi ...

Posted by melody on Thu, 03 Oct 2019 15:10:03 -0700

Logging with Go

brief introduction Define configuration Read log-related configuration summary The current part of the code brief introduction In the previous section, we used viper to read the configuration file. logrus is used to log in this section. logrus is a structured logger with fully compatible API s with logger in standard libraries. Define configu ...

Posted by thegman on Thu, 03 Oct 2019 11:16:09 -0700

[small program] WeChat applet gets input and sends network request.

1. Get input box dataAdding bindinput attributes and method values to input in wxmlThe corresponding method is defined in the js section. As long as it is input, the data will be bound to the method and stored in the data attribute variable. 2. Invoke get request to initiate network requestInvoke wx.request to initiate network requests 3. Cal ...

Posted by nscipione on Thu, 03 Oct 2019 09:43:40 -0700

kubespray creates windows server 2019 worker node cluster

By default, refer to: https://docs.microsoft.com/en-us/virtualization/windowscontainers/kubernetes/creating-a-linux-master Based on the above method, kubespray is used for optimization. 1. First, modify the following files: inventory/your_name/group_vars/k8s-cluster/k8s-cluster.yml Modification: ...

Posted by firepages on Thu, 03 Oct 2019 09:06:15 -0700

Easy front end

Top Trading Front-end Architecture Building with vue-cli3 as a whole Frame selection vue family barrel + sass+ element-ui Code Specification Mandatory Use eslint-airbnb Standard The project is divided into architecture layer, business layer and view layer. Architecture layer needs to deal with request encapsulation, request interruption, exce ...

Posted by bradkenyon on Thu, 03 Oct 2019 08:04:22 -0700

Unified verification of spring boot 2.x interface parameters

Implementation of Custom Interceptor We can verify the parameters of the interface by customizing the interceptor. How to implement a custom interceptor, please refer to Simple Implementation of Custom Interceptor in Sprboot 2.x public boolean preHandle (HttpServletRequest request, HttpServletResponse ...

Posted by tastyniall on Thu, 03 Oct 2019 07:48:14 -0700

Download mirror error Couldn't connect: SOCKS protocol error in minikube

Problem description The agent environment variable used to start minikube creates a minikube virtual machine, but errors occur when downloading or querying mirrors, such as the following two commands reporting a similar error: "Couldn't connect: SOCKS protocol error" # Execute outside the mi ...

Posted by MadDogSh on Thu, 03 Oct 2019 03:08:55 -0700

WebMagic uses proxy ip crawling data to solve HTTP407 problem

One small task at hand is crawling website data. Use webmagic to implement. If the company's IP is not good, blocked will affect normal business access. Just as another project of the company purchased the proxy IP resource "Station Master", the project died, and then applied for borrowing. It is not technically difficult to get the ...

Posted by Xu Wei Jie on Thu, 03 Oct 2019 02:40:38 -0700