Tag:parameter

  • Simply sort @ requestparam and @ requestbody

    Time:2020-7-13

    The front-end transmits parameters to the back-end, and how the back-end receives them will be thought ofspringNotes for Before that, I used it all the timeRequestParam(“userName”) String userName It’s not very useful to be reasonableRequestParam String userName It’s time to see the difference between the two @RequestParam @Requestbody (received as JSON data) If you don’t […]

  • Solution to the problem of fake death of Internet Explorer accessing flag’s own server

    Time:2020-7-13

    If you debug the flash application locally, if you use IE browser to access, you will often get stuck (feign dead), which is a more annoying problem. In fact, the solution is relatively simple, as long asapp.runAdd onethreaded=TrueParameters orprocesses=NParameter (change n to actual value). If: pythonif __name__ == ‘__main__’: app.run(threaded=True) #Or # app.run(processes=3) Parameter Description: […]

  • Constructors in Java child parent classes

    Time:2020-7-13

    When the subclass object is initialized, the constructor of the parent class also runs, That’s because the default first line of the subclass constructor has an implicit statement: super(); Super (): will access the null parameter constructor in the parent class. Moreover, the default first line of all constructors in the subclass is: super(); Why […]

  • Unveiling webpack plugin

    Time:2020-7-13

    preface Plugins are a key part of the webpack ecosystem. It provides a powerful way for the community to extend and develop the compilation process of webpack. This article will try to explore the webpack plugin, how it works, and how to develop a plugin. 1、 The role of plugin For the role of plugin, […]

  • Gin series – file upload

    Time:2020-7-13

    Single file upload front end File upload //Upload jump control //File and formC are consistent back-end #main.go package main import ( “github.com/gin-gonic/gin” “net/http” “path” ) func main() { r := gin.Default() //The default memory limit for multipart forms submissions is 32 MIB r.MaxMultipartMemory = 8 //router.MaxMultipartMemory = 8 << 20 // 8 MiB r.LoadHTMLFiles(“./index.html”) r.GET(“/index”, […]

  • Using Vue to realize single selection and multiple selection of check box

    Time:2020-7-11

      Interface style: full name phone number Application time operation {{item.trueName}} {{item.phone}} {{item.addTime}} adopt reject No data available Key parameters: Hasallchecked select all method: //Select all chooseAll(val) { var self = this if (val) { self.applyUserList.forEach(ele => { ele.hasSelected = true }) } else { self.applyUserList.forEach(ele => { ele.hasSelected = false }) } }, Explanation: […]

  • K8s ecological weekly | helm v3.2 officially released

    Time:2020-7-11

    The content of “k8s ecological weekly” mainly contains some information about k8s ecology that I have been exposed to and worth recommending every week. Welcome to “k8s ecology” column. Helm v3.2.0 officially released After more than two months, helm v3.2 was officially released this week! This version brings a lot of attention, let’s take a […]

  • WPF: (1) large collection of window related examples

    Time:2020-7-11

    Source project address: https://github.com/Microsoft/…The following is the conversion of the sample into a brief description, and gives the actual operation effect and key code: Custom window Move the controllable size of windowless workspace through thumb control, and drag the form. private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { DragMove(); } private void ResizeThumb_DragDelta(object sender, DragDeltaEventArgs e) […]

  • Drawing bar chart with CSS flex layout

    Time:2020-7-11

    For flex layout, see my illustration flex layout This paper is based on the framework: wechat applet, uniapp( Vue.js )、SCSS。 The principle is the same, I don’t convert to native Vue.js And CSS. Principle: Template: v-for=”i in 5″Cycle display 5 bar :style=”{ ‘height’: readingHoursHeight[i] + ‘px’Set the bar height dynamically according to the data of […]

  • [ asp.net Core] 7 definition of data access layer

    Time:2020-7-11

    Preface In the last article, we built a project framework, which is basically a complete project. Most of them are basic applications at present. OK, no nonsense. Let’s move on to today’s topic: complete and implement the basic implementation of the data layer. 1. Data entity Usually, the fields in the data entity of a […]

  • Flag signaling mechanism (signals)

    Time:2020-7-10

    This paper introduces the signal mechanism of flag, describes the purpose of signal, and gives the method of creating signal, subscribing signal and sending signal. Signals Flags (signals, or event hooking) allows a particular sender to inform the subscriber what happened (now that we know what happened, we can know what to do next). Flag […]

  • JWT principle and simple application

    Time:2020-7-10

    JWT authentication login Recently, in doing an audit system, the background login uses JWT login authentication. Here is a summary What is JWT According to the definition of official website, JSON web token (JWT) is an open standard based on JSON for delivering statements between network application environments. The token is designed to be compact […]