Spring MVC response data and result view & file upload & exception handling & interceptor - > (personal learning notes)

springmvc 1. Response data and results view 1.1 return value classification 1.1.1 return string The return string of the Controller method can specify the name of the logical view and the address of the physical view according to the view parser. <a href="user/testString" >testString</a> /** * Return String * @param model ...

Added by qazwsx on Sat, 22 Jan 2022 18:57:50 +0200

How does SpringBoot use prefix trees to filter sensitive words

1, Prefix tree Generally, when designing websites, there will be problem publishing or content publishing functions. A very important point of these functions is how to realize sensitive word filtering. Otherwise, there may be bad information publishing, or the published content may contain code fragments with malicious functions. The basic al ...

Added by j0n on Tue, 18 Jan 2022 10:08:00 +0200

Spring source code parsing -- spring web Filter parsing

brief introduction In the last few articles, we explored the code related to request processing. This article begins to explore some operation codes before request processing, such as Filter. This article explores Filter initialization, request processing and other related codes. preface First, simply define the relevant test code: Startup ...

Added by jsimmons on Sun, 02 Jan 2022 12:31:55 +0200

JavaWeb listener listener, Filter

Note sorting comes from Shang Silicon Valley , for my review only, no other purpose 1, Listener listener 1. What is a Listener listener? (1) Listener listener, which is one of the three major components of Java Web. The three major components of Java Web are Servlet program, Filter filter and listener listener. (2) Listener, which is the spe ...

Added by silvio on Mon, 27 Dec 2021 00:38:27 +0200

JavaWeb 22 Filter

7.2 Filter Filter: filter for filtering website data. For example, deal with Chinese garbled codevalidate logon The filter is also a program in the background, just to implement the filter interface. The first thing we need to know is that we must not import the wrong interface. The Filter interface supported by Tomcat 10 is under jakart ...

Added by phynias on Thu, 23 Dec 2021 12:42:04 +0200

Servlet -- ServletContext, filter, JSP

Servlet (III) -- ServletContext, filter, JSP 1, ServletContext 1. ServletContext overview 2. Get ServletContext object 3. ServletContext function a. Get the real path of the project b. Get project context path c. Global container 4. ServletContext features 5. Above code 6. Small case - ServletContext counts the number of ...

Added by mella on Thu, 16 Dec 2021 22:13:17 +0200

Vue basic syntax: calculated, watch, and filters

1. Vue instance options When instantiating Vue objects, you need to provide a series of configuration information for the constructor of Vue. The code is as follows: new Vue({ //option }) When creating a Vue instance using the new operator, you can pass in an option object for the instance. There are many types of data in the option object ...

Added by Mordred on Sun, 28 Nov 2021 19:35:05 +0200

Gateway custom local filter and custom global filter

What is Gateway The core of the Spring Cloud Gateway component is a series of filters, which can forward (route) requests sent by clients to pairs Microservices should be. Spring Cloud Gateway is a firewall and agent added at the forefront of the whole microservice, which hides the IP port information of the microservice node, So as to str ...

Added by pelleas on Thu, 09 Sep 2021 22:15:40 +0300