• DRF (VI) – parser


    DRF (VI) – parser Problem elicitation:Request headers generally take many forms. The most common isjsonForm, andform-data。 JSON is the most common form. The parser is generally used to parse the data sent by the user; 1. Request header requirements # django:request.POST/ request.body # Content-Type: application/x-www-form-urlencoded #PS: if content type: application / x-www-form-urlencoded in the request […]

  • Python technique: implement simple recursive descent parser


    1. Arithmetic operation expression evaluation In the last blog postPython techniques: implementing simple tokenizer with re moduleIn, we introduce the use of regular expressions to match the corresponding patterns to realize a simple word segmentation. However, regular expression is not omnipotent. It is essentially a finite state machine (FSM), which cannot process text with recursive […]

  • What happened to the input URL? I hope you understand these 15 knowledge points by the way


    preface Hello, I’m Lin Sanxin. I believe you have been asked many times in the interview”Tell me what happens when you enter a URL in the URL bar?”, I believe that many people can answer all the steps backwards, but just reciting is not enough. In fact, this question contains a lotbrowserAndperformance optimizationToday, I’ll share […]

  • Script parser of mybatis


    Script parser of mybatis This article mainly introduces the script parsing function of mybatis, which is based on mybatis 3.4.6. Knowledge points What is a script parser Analytical principle What is a script parser At the first sight, you will be confused when you see the statement of script parser. You can’t find it on […]

  • Design and practice of self-developed SQL parser 30 times faster than open source


    Introduction: as a domain language, SQL was first used in relational database to facilitate the management of structured data; SQL is composed of many different types of languages, including data definition language, data control language and data operation language; Each database product has different declarations and implementations; Users can easily use SQL to operate data. […]

  • JavaScript FAQs (4)


    I DOM loading process Enter the URL in the browser address bar, DNS domain name resolution, find the IP, send a request to the server, the server returns data, and the browser receives the binary file. The browser converts the binary file into HTML and constructs the DOM tree. html parser Parsing process: When encountering […]

  • The difference between Babel parser and acorn


    knowacornIs the parser of JS, I also knowbabel-parserIt’s also a JS parser, but what’s the difference between them?first,@babel/parser(previously Babylon) fromacornFork comes out, but it’s basically rewritten, but someacornThe algorithm is still popular. There are still some differences between them: @Babel / parser does not support third-party plug-ins. Acorn only supports the proposal of the fourth […]

  • Simple tutorial of spring boot (II) web page development (thymeleaf)


    Web page content display In the previous examples, we all process the request through @ restcontroller, so the returned content is JSON object. Now we need to realize more complex page display, so we need to use the template engine to help me realize it. Spring boot provides static resources by default. The directory location […]

  • Linux packages Vue without errors and abnormal operation records


    Process: Try node6 The download of X version depends on, the download fails, and there is no solution. It is suspected that the version is too low Try node16 The download of X version depends on the download, and the download fails. GCC and python report errors. Through troubleshooting, it is found that node sass […]

  • Spring MVC – annotation based development


    Annotation configuration spring MVC 1. Create initialization class instead of web xml In servlet3 0 environment, the container will find the implementation javax in the classpath servlet. The class of servletcontainerinitializer interface. If found, use it to configure the servlet container. Spring provides the implementation of this interface, called springservletcontainerinitializer. This class in turn will […]

  • Talk about how custom SPI uses custom tags to inject into spring containers


    preface We talked beforeHow can custom SPI be integrated with springToday, let’s talk about how to inject SPI objects into spring containers through custom tags Implementation routine 1. Custom xsd Examples: <?xml version=”1.0″ encoding=”UTF-8″ standalone=”no”?> <xsd:schema xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns:beans=”http://www.springframework.org/schema/beans” xmlns:tool=”http://www.springframework.org/schema/tool” xmlns=”http://lybgeek.github.com/schema/spi” targetNamespace=”http://lybgeek.github.com/schema/spi”> <xsd:import namespace=”http://www.w3.org/XML/1998/namespace”/> <xsd:import namespace=”http://www.springframework.org/schema/beans” schemaLocation=”http://www.springframework.org/schema/beans/spring-beans.xsd”/> <xsd:import namespace=”http://www.springframework.org/schema/tool”/> <xsd:annotation> <xsd:documentation> <![CDATA[ Namespace support for spi […]

  • How to customize the parameter parser in springboot?


    In a web request, parameters are simply placed in the address bar or request body, and individual requests may be placed in the request header. In the address bar, we can obtain the parameters in the following ways: String javaboy = request.getParameter(“name “); Put it in the request body. If it is in the form […]