GenericServlet principle: Servlet; ServletConfig
What are the disadvantages of writing a Servlet class to directly implement the Servlet interface?
service method is the most commonly used method, and other methods do not need to be used in most cases. In this way, other methods appear redundant and the code is ugly.Solution: write a "middleman" to enable the middleman to im ...
Posted on Sun, 05 Dec 2021 02:12:20 -0500 by waylon999
Full record of dark horse travel website
1, Project import
Click maven on the side (if not, you can find it in view - > tool window), click the plus sign, and select the pom.xml document in the file to import First preview the static page Start mode 1: Start mode 2: add a start mode and click the green triangle to start
2, Technology selection
web: servlet: front end ...
Posted on Sun, 05 Dec 2021 00:12:40 -0500 by dhorn
MySQL data table advanced operations and user permissions
1, Data table advanced operations
1. Clone the table and generate the data records of the data table into a new table
Method 1:
create table test1 like kfc; #Using the like method, copy the test1 table structure to generate the test2 table
insert into test1 select * from kfc;
Method 2:
create table test2 (select * from kfc);
...
Posted on Sun, 28 Nov 2021 09:57:05 -0500 by graham
[Jsp] Lesson 9 learning and using EL expressions
What is EL?
EL is Expression Language
jsp's built-in expression language can be used directly from jsp 2.0
Functions of EL
Used instead of <% =..% >
EL syntax
${EL expression}
1. Obtain data in the four scopes
Basic Usage
Get data in the domain: ${pageScope|requestScope|sessionScope|applicationScope. Property name}
${attribute ...
Posted on Mon, 22 Nov 2021 11:53:55 -0500 by budimir
Sessions and their session technologies
Sessions and their session technologies
1. Cookie Objects Cookies are session technologies that save data during a session to the user's browser so that the browser and server can better interact with the data. (1) Cookie technology is used to display the last access time of users. When the browser exits, the browser deletes the cookie object ...
Posted on Tue, 16 Nov 2021 13:43:52 -0500 by agge
Dynamic static separation cluster for load balancing of Nginx+Tomcat
1, Introduction to Tomcat
Originally developed by Sun's software architect James Duncan Davidson
After installing tomcat, the directories and files under the installation path are important files for using or configuring Tomcat
Tomcat important directory
bin: store the startup and shutdown Tomcat scripts
conf: store different configu ...
Posted on Tue, 16 Nov 2021 05:10:11 -0500 by jackmn1
A brief talk on the implementation principle of Tomcat
1, Foreword
After we came into contact with java, I believe everyone has written server programs. Tomcat is needed at this time. Tomcat server is an open source lightweight Web application server, which is widely used in small and medium-sized systems and occasions with small concurrency. It is the first choice for developing and debugging Ser ...
Posted on Thu, 11 Nov 2021 03:51:10 -0500 by Chrisww
JavaWeb: developing the first servlet program (JDBC) Tomcat under the integrated development environment of IntelliJ idea
JavaWeb: the first servlet program developed under IntelliJ idea integrated development environment
Step 1: create a project
New Project: first create an empty project (Empty Projcet) named javaweb.
Step 2: create a new module
File --> new --> Module... What is newly created here is a common Java se Module, which will be automatically ...
Posted on Mon, 08 Nov 2021 14:39:46 -0500 by pulkit123
Analysis of dump samples of three thread stacks in tomcat
"Pick up flowers day and night and leave no regrets. If you never forget, there will be an echo."
By reading through the source code of tomcat request task processing, tomcat thread pool, TaskQueue, ReentrantLock and AQS, as well as their functions and principles, we can analyze the clues in tomcat thread dump.
In addition, for sample ...
Posted on Sun, 07 Nov 2021 17:07:13 -0500 by jandrews
Java classic basic project -- project requirements specification of student educational administration system
Requirements specification for project initiation of Java classic basic project student educational administration system
1, Demand background
The system design of student educational administration system takes convenience, quickness and safety as the starting point, abandons the defects and deficiencies of traditional manual records on stud ...
Posted on Tue, 02 Nov 2021 20:20:31 -0400 by Robert07