Separation of dynamic and static state by Nginx+Tomcat

Add group groupadd www Add user WWW: useradd - G www under www group Modify configuration file nginx.conf : user www www; worker_processes 2; events{ worker_connections 1024; } http{ #Set the default type to binary stream default_type application/octet-stream; server_names_hash_bucket_size 128; #Specify the hea ...

Posted by ftrudeau on Wed, 01 Jul 2020 08:01:07 -0700

springMVC exception interceptor file upload

Asynchronous call Send asynchronous requests (review) <a href="javascript:void(0);" id="testAjax">Visit controller</a> <script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script> <script type="text/javascript"> $(function(){ $("#testAjax").click(funct ...

Posted by liquid79 on Thu, 25 Jun 2020 18:21:59 -0700

Design mode - business representative mode

Above (design mode visitor mode): https://blog.csdn.net/qq_16498553/article/details/106934637 catalog background What is the business representative model? Role: advantage: Disadvantages: What can the business representative model do? Business representative model class diagram Source code ...

Posted by rifts on Wed, 24 Jun 2020 19:37:48 -0700

Deep analysis of JVM class loading mechanism

get ready: Markdown authoring tool Youdaoyun notes Idea development tools GItHub project address analysis: The whole process of class loading and running: When we use the java command to run the main function of a class to start the program, we first need to load the main class into the JVM through th ...

Posted by khaitan_anuj on Tue, 23 Jun 2020 03:23:00 -0700

The spring MVC interceptor of kit's learning process

Day 14 of Kite's learning framework 1. Spring MVC interceptor Introduction: Spring MVC's processor interceptor is similar to the Filter in Servlet development, which is used for preprocessing and postprocessing the processor. Users can define some interceptors to implement specific functions. When i ...

Posted by Tilemachos on Fri, 19 Jun 2020 20:50:36 -0700

Spring MVC core technology

Spring MVC core technology 1, Request redirection and forwarding When the processor finishes processing the request and jumps to other resources, there are two ways: request forwarding and redirection. According to the type of resources to jump, it can be divided into two categories: jump to page an ...

Posted by classifieds100 on Tue, 16 Jun 2020 20:48:28 -0700

Design and implementation of book management system

Design and implementation of book management system The structure of library staff is complex, the number of staff is limited, and it involves a wide range of aspects. If manual operation is also used to deal with the problem of book borrowing, the work will be very tedious, requiring a lot of manpow ...

Posted by unplugme71 on Sun, 14 Jun 2020 23:18:20 -0700

Use of filters

1. What is a filter? In the process of client to server, when sending a request, if there is non-conforming information, it will be intercepted by the filter, if it is conforming, it will be released, and when the server responds to the client, it will also be judged that if there is non-conforming in ...

Posted by chadrt on Sun, 14 Jun 2020 21:23:07 -0700

Minimal Python syntax

7. Using regular expressions in Python 7.1 regular expression When dealing with strings, we often use the need to find strings that meet some complex rules. Regular expressions are tools for describing these rules. Regular expressions are the code used to record text rules. 7.1.1 line locator The ...

Posted by philipolson on Sat, 13 Jun 2020 04:41:18 -0700

Filter and Listener related learning notes

Filter: filter concept When accessing the resources of the server, the filter can intercept the request and complete some special functions. Generally used to complete general operations. (such as login authentication, unified encoding, sensitive character filtering...) step Define a class to imp ...

Posted by RClapham on Fri, 12 Jun 2020 22:09:52 -0700