Sentinel sentinel integrates Gateway to realize Gateway flow control console and rule configuration
1. Introduction
The gateway is the common entrance for all requests, so the current can be limited in the gateway, and there are many ways to limit the current. The current limit of the gateway is realized through sentinel component. Sentinel supports current limiting for spring cloud gateway, Zuul and other mainstream gateways. The curre ...
Added by sargenle on Sat, 05 Mar 2022 08:51:47 +0200
day036 filter
1 case 1 - automatic login
1.1 requirements and process introduction
When the user directly accesses the login page (e.g. shopping cart page, order page, etc.), the user object of the last login is directly displayed. This function is the function of automatic login. If the user did not check auto login when logging in last time, the user wil ...
Added by c4onastick on Fri, 04 Mar 2022 21:59:13 +0200
drf serialization component
I Introduction to serializer
1. Serialization and deserialization in Python
Serialization: converting objects in Python to strings in XML formatDeserialization: convert a string in Python format into an object in Python
2. Function of serializer
Serialization, the serializer will convert the model object into a dictionary, and then into a j ...
Added by IanMartins on Thu, 03 Mar 2022 19:36:02 +0200
vue dynamic class, style, filter, calculation attribute, listener summary
1, Virtual DOM: The labels written in the template in the vue file are all templates, which must be processed into virtual DOM objects by vue before they can be rendered and displayed on the real DOM page
2, diff algorithm: used to compare the new virtual DOM with the old virtual dom
1. Root element change → delete and rebuild DOM tree 2 ...
Added by desmi on Fri, 18 Feb 2022 08:53:38 +0200
Quick start springboot web page development filter and interceptor of springboot controller
filter
◼ Filter s can dynamically intercept requests and responses. ◼ Application scenario: filter sensitive words, prevent SQL injection, set character encoding, and perform URL level Other permissions, access control, compression response information, etc.
Filter programming step 1: create a filter class
◼ Write a Java class to imp ...
Added by jarvis on Tue, 08 Feb 2022 15:19:27 +0200
JSP, file upload and download, EL, JSTL, filter, listener
JSP
jsp file unified character encoding Set the encoding of jsp file (pageEncoding attribute in jsp file): jsp -- java Set the encoding for browsing and reading jsp files (content attribute in jsp files) Generally, the above codes are set to be consistent. It is recommended to use: utf-8 Deploy tomcat
On the Servers panel, first create a ...
Added by Gighalen on Mon, 07 Feb 2022 23:37:54 +0200
The use of javaee OA project filter to solve the filter of Chinese random code and use the filter to realize interception and judgment
Why use filters
What are the problems we have encountered in our current writing project?
A. The advantage of baseServlet currently used is that it is convenient to handle garbled code uniformly. However, if we do not use servlet in the future, we need to write in each servlet when dealing with Chinese garbled code, but it is more trouble ...
Added by Full-Demon on Mon, 31 Jan 2022 12:38:00 +0200
Filter interface in servlet (filter interface)
I introduce
(1) It comes from the interface under Servlet specification and exists in Servlet API in Tomcat Jar package
(2) The developer is responsible for providing the Filter interface implementation class, but the Http server is not responsible for providing it
(3) The Filter interface intercepts the Http server before calling the reso ...
Added by solaris77 on Mon, 31 Jan 2022 07:51:45 +0200
Application of array instance method
Array has many instance methods. Some methods will not change the existing array, but return a new array, and some methods will change the original array. The methods listed in this article are all extracted from real cases of specific projects.
1. forEach
Execute the given function once for each element of the array without changing the origi ...
Added by wscreate on Thu, 27 Jan 2022 22:17:58 +0200
News management system of Jsp+Servlet+Filter (original Java homework project)
Project type: JAVA WEB project User type: administrator + ordinary user Main technology: Jsp+Servlet+MySQL+Tomcat Front end html+css Style: LayUI is used Development tool: Eclipse (configuration information is required for Idea import) Corresponding environment introduction: jdk1 8 + MySQL 5.7 + Tomcat (MySQL connector 8.0.jar needs to be repla ...
Added by lobski on Sat, 22 Jan 2022 21:38:54 +0200