Chapter 9. Servlet Writing Filters

Articles Catalogue About this article Thank Servlet Writing Filters Servlet filter method FilterConfig uses Servlet filter instance Servlet Filter Mapping in Web.xml Use multiple filters Application sequence of filters Description of each node in web.xml configuration About this article Underst ...

Posted by flyersman on Thu, 25 Jul 2019 20:38:20 -0700

Operations Note 33 (haproxy configuration, pacemaker high availability + haproxy)

Summary: One of the load balancing methods mentioned in previous blogs is lvs. The configuration of LVS is simple, which reduces the probability of errors. Moreover, the software is in the fourth layer of the tcp/ip protocol stack. It can provide various web application services. However, because it does not support regular expression processi ...

Posted by caedo on Wed, 17 Jul 2019 11:40:49 -0700

Install and use Karma-Jasmine for automated testing

Note: Data links, karma plug-in installation, etc. that appear in this article may require a $wall flip to perform correctly. Jasmine is a Javascript testing tool that runs Jasmine on Karma to automate Javascript testing, generate coverage reports, and so on.This article doesn't contain any details about Jasmine's use. I'll write an introd ...

Posted by IwnfuM on Wed, 17 Jul 2019 11:10:48 -0700

koa2 source code analysis

Introduction Recently, in writing koa2 related examples, by the way, look at the source code of koa2, below are some personal understandings. koa1 core is based on generator, but relies heavily on co packaging. koa2 does not need at all. It can run directly under node v7 based on async (which is essentially the grammatical sugar call wrapping o ...

Posted by tulleh on Mon, 15 Jul 2019 10:57:29 -0700

Teenagers, it's time to deploy your php code in a more elegant way

Let's recall how you released your code last time: 1. First, back up the online code with ftp 2. Upload modified files 3. Test whether the function is normal. 4. The website is 500. Replace it with a backup as soon as possible. 5. The replacement is wrong/the replacement is missing. 6. A successful server release 7. Log on to each station to pe ...

Posted by jordanwb on Sat, 06 Jul 2019 19:11:39 -0700

Netty Protocol Development

Http HTTP protocol is the abbreviation of Hyper Text Transfer Protocol (HTTP), which is used to transfer hypertext from WWW:World Wide Web server to local browser. HTTP is a communication protocol based on TCP/IP to transfer data (HTML files, image files, query results, etc.). HTTP is an object-oriented protocol belonging to the ...

Posted by phreek on Fri, 05 Jul 2019 11:36:22 -0700

Servlet from entry to proficiency

Servlet from entry to proficiency Introduction to Servlet Servlet is a technology provided by sun Company for developing dynamic web resources. Sun provides a servlet interface in its API. Users need to complete the following two steps if they want to send a dynamic web resource (that is, to develop a Java program to output data to the bro ...

Posted by not_skeletor on Wed, 03 Jul 2019 18:11:59 -0700

JsUnit Tool Application

Why use JsUnit, because the project is not a WEB project, JS code can not use web pages test JsUnit is also used to test the JS code written. Preparations: Download JsUnit related resources: www.jsunit.net, decompressed as follows: The core files of JsUnit (jsUnitCore.js, jsUnitTestManager.js, etc.) are in the app folder. TesRunner. ...

Posted by sane993 on Sun, 30 Jun 2019 12:20:49 -0700

Relations and differences between Java filters and Spring MVC interceptors, Java listeners

1. Java filters: 1. In Java Web, the incoming request and response filter out some information in advance, set some parameters in advance, set the character set uniformly, control whether to log in, and then process it in the incoming Servlet. 2. Filter Chain: In a Web application, you can write multiple filters, which together are ca ...

Posted by drbigfresh on Fri, 28 Jun 2019 16:53:19 -0700

05.24 nginx load balancing

Chapter 1 Advantages of Cluster Important computational intensive applications in some countries (such as weather forecasting, nuclear test simulation, etc.) require a strong computational processing capability of computers. With the existing technology all over the world, even mainframes, their computing power is limited, and it is difficult ...

Posted by AnthonyArde on Wed, 12 Jun 2019 16:57:33 -0700